diff options
Diffstat (limited to 'packages/demobank-ui')
-rw-r--r-- | packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx | 8 | ||||
-rw-r--r-- | packages/demobank-ui/src/pages/admin/Home.tsx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx index af6f7caee..5f5a6ce3b 100644 --- a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx +++ b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx @@ -115,20 +115,20 @@ export function PaytoWireTransferForm({ }); async function doSend() { - let paytoUri: string | undefined; + let payto_uri: string | undefined; if (rawPaytoInput) { - paytoUri = rawPaytoInput + payto_uri = rawPaytoInput } else { if (!iban || !subject) return; const ibanPayto = buildPayto("iban", iban, undefined); ibanPayto.params.message = encodeURIComponent(subject); - paytoUri = stringifyPaytoUri(ibanPayto); + payto_uri = stringifyPaytoUri(ibanPayto); } try { await createTransaction({ - paytoUri, + payto_uri, amount: `${limit.currency}:${amount}`, }); onSuccess(); diff --git a/packages/demobank-ui/src/pages/admin/Home.tsx b/packages/demobank-ui/src/pages/admin/Home.tsx index 725820ada..ffa559097 100644 --- a/packages/demobank-ui/src/pages/admin/Home.tsx +++ b/packages/demobank-ui/src/pages/admin/Home.tsx @@ -136,7 +136,7 @@ export function AdminHome({ onRegister }: Props): VNode { }} account={undefined} onAction={(type, account) => setAction({ account, type })} - onRegister={onRegister} + /> <AdminAccount onRegister={onRegister} /> |