Skip to content

Commit

Permalink
chore: remove unnecessary async await
Browse files Browse the repository at this point in the history
  • Loading branch information
dbudzins authored Dec 14, 2022
1 parent dda38a2 commit 13b5e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Account/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const Account = ({ panelClassName, panelHeaderClassName, canUpdateEmail = true }
formSection({
label: t('account.terms_and_tracking'),
saveButton: t('account.update_consents'),
onSubmit: async (values) => await updateConsents(formatConsentsFromValues(publisherConsents, values)),
onSubmit: (values) => updateConsents(formatConsentsFromValues(publisherConsents, values)),
content: (section) => (
<>
{publisherConsents?.map((consent, index) => (
Expand Down

0 comments on commit 13b5e74

Please sign in to comment.