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() { async function doSend() {
let paytoUri: string | undefined; let payto_uri: string | undefined;
if (rawPaytoInput) { if (rawPaytoInput) {
paytoUri = rawPaytoInput payto_uri = rawPaytoInput
} else { } else {
if (!iban || !subject) return; if (!iban || !subject) return;
const ibanPayto = buildPayto("iban", iban, undefined); const ibanPayto = buildPayto("iban", iban, undefined);
ibanPayto.params.message = encodeURIComponent(subject); ibanPayto.params.message = encodeURIComponent(subject);
paytoUri = stringifyPaytoUri(ibanPayto); payto_uri = stringifyPaytoUri(ibanPayto);
} }
try { try {
await createTransaction({ await createTransaction({
paytoUri, payto_uri,
amount: `${limit.currency}:${amount}`, amount: `${limit.currency}:${amount}`,
}); });
onSuccess(); onSuccess();

View File

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