Skip to content

Commit

Permalink
update input return values
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbyrne committed Jun 4, 2024
1 parent 48ae6dc commit 6ef0ba8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nextjs/src/app/[locale]/publishers/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function SettingsPage() {
}

function handleInputChange(e, name) {
setSettings({ ...settings, [name]: e.detail.value });
setSettings({ ...settings, [name]: e.value });
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function TOTPNewPage() {
}, []);

function handleInputChange(e) {
setCode(e.detail.value);
setCode(e.value);
}

async function handleSubmit() {
Expand Down Expand Up @@ -97,8 +97,7 @@ export default function TOTPNewPage() {
<Input
placeholder='6-digit code'
onInput={handleInputChange}
hasErrors={hasErrors}
showErrors
showErrors={hasErrors}
>
<div slot='errors'>{t('shared.invalid_totp')}</div>
</Input>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function U2fRegistrations() {
}, []);

function handleInputChange(e) {
setName(e.detail.value);
setName(e.value);
}

async function handleSubmit() {
Expand Down

0 comments on commit 6ef0ba8

Please sign in to comment.