uri snake case
This commit is contained in:
parent
ea0738ccd5
commit
6024d0125e
@ -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();
|
||||
|
@ -136,7 +136,7 @@ export function AdminHome({ onRegister }: Props): VNode {
|
||||
}}
|
||||
account={undefined}
|
||||
onAction={(type, account) => setAction({ account, type })}
|
||||
onRegister={onRegister}
|
||||
|
||||
/>
|
||||
|
||||
<AdminAccount onRegister={onRegister} />
|
||||
|
Loading…
Reference in New Issue
Block a user