summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/payto.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util/src/payto.ts')
-rw-r--r--packages/taler-util/src/payto.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/taler-util/src/payto.ts b/packages/taler-util/src/payto.ts
index 3073b991c..8eb0b88a8 100644
--- a/packages/taler-util/src/payto.ts
+++ b/packages/taler-util/src/payto.ts
@@ -139,12 +139,13 @@ export function parsePaytoUri(s: string): PaytoUri | undefined {
let iban: string | undefined = undefined;
let bic: string | undefined = undefined;
if (parts.length === 1) {
- iban = parts[0]
- } if (parts.length === 2) {
- bic = parts[0]
- iban = parts[1]
+ iban = parts[0];
+ }
+ if (parts.length === 2) {
+ bic = parts[0];
+ iban = parts[1];
} else {
- iban = targetPath
+ iban = targetPath;
}
return {
isKnown: true,