Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mirovladimitrovski committed Jun 8, 2023
1 parent d378708 commit ddeb8f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/inplayer.account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {
Capture,
ChangePassword,
ChangePasswordWithOldPassword,
JwConsent,
Consent,
Customer,
CustomerConsent,
Expand Down Expand Up @@ -159,12 +158,12 @@ export const getPublisherConsents: GetPublisherConsents<ConsentFieldVariants, st
const { jwp } = config.integrations;
const { data } = await InPlayer.Account.getRegisterFields(jwp?.clientId || '');

const result = (data?.collection as JwConsent<ConsentFieldVariants>[])
const result = data?.collection
// todo: implement DATE_PICKER at some point
.filter((field) => (field.type as ConsentFieldVariants) !== ConsentFieldVariants.DATE_PICKER && field.name !== 'email_confirmation')
.map(
(field): Consent<ConsentFieldVariants> => ({
type: field.type,
type: field.type as ConsentFieldVariants,
provider: 'jwp',
defaultValue: field.type === ConsentFieldVariants.CHECKBOX ? field.default_value === 'true' : field.default_value,
name: field.name,
Expand Down

0 comments on commit ddeb8f1

Please sign in to comment.