Skip to content

Commit

Permalink
fix: metadata consistency on register and update account
Browse files Browse the repository at this point in the history
  • Loading branch information
mirovladimitrovski committed Oct 16, 2023
1 parent 2476a9d commit 39f19a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Account/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ const Account = ({ panelClassName, panelHeaderClassName, canUpdateEmail = true }
value={section.values.consentsValues[consent.name]}
disabled={(consent.type === 'checkbox' && consent.required) || section.isBusy}
onChange={section.onChange}
required={consent.required}
/>
))}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/services/inplayer.account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const register: Register = async ({ config, email, password, consents })
first_name: ' ',
surname: ' ',
...formatConsentsToRegisterFields(consents),
consents: JSON.stringify(consents),
},
type: 'consumer',
clientId: config.integrations.jwp?.clientId || '',
Expand Down

0 comments on commit 39f19a9

Please sign in to comment.