From 6024d0125eadbddf014a7bf32c4138957511f019 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 25 Sep 2023 15:01:39 -0300 Subject: [PATCH] uri snake case --- packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx | 8 ++++---- 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} + />