uri snake case

This commit is contained in:
Sebastian 2023-09-25 15:01:39 -03:00
parent ea0738ccd5
commit 6024d0125e
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069
2 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -136,7 +136,7 @@ export function AdminHome({ onRegister }: Props): VNode {
}}
account={undefined}
onAction={(type, account) => setAction({ account, type })}
onRegister={onRegister}
/>
<AdminAccount onRegister={onRegister} />