diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-05 14:59:02 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-05 14:59:02 -0300 |
commit | f68585db5f9ba0f760e22dada474fd7ec2847796 (patch) | |
tree | b1efaf9560df032225f7aa1debdb4e8624261b92 /packages/demobank-ui/src/pages/admin/AccountForm.tsx | |
parent | 58d45fc8aef174027b2855a3cd24b0eb73d6de2e (diff) | |
download | wallet-core-f68585db5f9ba0f760e22dada474fd7ec2847796.tar.xz |
pretty
Diffstat (limited to 'packages/demobank-ui/src/pages/admin/AccountForm.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/admin/AccountForm.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/demobank-ui/src/pages/admin/AccountForm.tsx b/packages/demobank-ui/src/pages/admin/AccountForm.tsx index 300508abe..fcad47b4a 100644 --- a/packages/demobank-ui/src/pages/admin/AccountForm.tsx +++ b/packages/demobank-ui/src/pages/admin/AccountForm.tsx @@ -129,7 +129,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({ purpose === "create" || (purpose === "update" && (config.allow_edit_name || userIsAdmin)); - const isCashoutEnabled = config.allow_conversion + const isCashoutEnabled = config.allow_conversion; const editableCashout = showingCurrentUserInfo && (purpose === "create" || @@ -475,9 +475,9 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({ !editableThreshold ? undefined : (e) => { - form.debit_threshold = e as AmountString; - updateForm(structuredClone(form)); - } + form.debit_threshold = e as AmountString; + updateForm(structuredClone(form)); + } } /> <ShowInputErrorLabel @@ -537,8 +537,8 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({ </div> )} {/* channel, not shown if old cashout api */} - {OLD_CASHOUT_API || config.supported_tan_channels - .length === 0 ? undefined : ( + {OLD_CASHOUT_API || + config.supported_tan_channels.length === 0 ? undefined : ( <div class="sm:col-span-5"> <label class="block text-sm font-medium leading-6 text-gray-900" @@ -549,7 +549,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({ <div class="mt-2 max-w-xl text-sm text-gray-500"> <div class="px-4 mt-4 grid grid-cols-1 gap-y-6"> {config.supported_tan_channels.indexOf(TanChannel.EMAIL) === - -1 ? undefined : ( + -1 ? undefined : ( <label onClick={(e) => { if (!hasEmail) return; @@ -607,7 +607,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({ )} {config.supported_tan_channels.indexOf(TanChannel.SMS) === - -1 ? undefined : ( + -1 ? undefined : ( <label onClick={(e) => { if (!hasPhone) return; |