uri snake case
This commit is contained in:
parent
ea0738ccd5
commit
6024d0125e
@ -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();
|
||||||
|
@ -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} />
|
||||||
|
Loading…
Reference in New Issue
Block a user