-optional

This commit is contained in:
Florian Dold 2023-05-11 13:05:49 +02:00
parent 07bf3d5b8f
commit 1d718dda1d
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -116,7 +116,7 @@ export namespace BankApi {
const resp = await bank.http.postJson(url.href, { const resp = await bank.http.postJson(url.href, {
username, username,
password, password,
iban: options.iban, iban: options?.iban,
}); });
let paytoUri = `payto://x-taler-bank/localhost/${username}`; let paytoUri = `payto://x-taler-bank/localhost/${username}`;
if (resp.status !== 200 && resp.status !== 202 && resp.status !== 204) { if (resp.status !== 200 && resp.status !== 202 && resp.status !== 204) {