diff options
author | Sebastian <sebasjm@gmail.com> | 2022-11-04 15:58:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-11-04 15:58:43 -0300 |
commit | 661469f878271a9a8f0f90c5f067dec669f47a36 (patch) | |
tree | 58462e79cd1f92fcdbd257d39ba81006e51e7cce /packages/taler-wallet-webextension/src | |
parent | 709ac2349c2b5a73377f8a33669d6349aede1787 (diff) | |
download | wallet-core-661469f878271a9a8f0f90c5f067dec669f47a36.tar.xz |
encode bank account name and show BIC
Diffstat (limited to 'packages/taler-wallet-webextension/src')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx | 7 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ManageAccount/views.tsx | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx index 3283723e4..e97b3364f 100644 --- a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx +++ b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx @@ -122,7 +122,12 @@ export function BankDetailsByPaytoType({ /> </Fragment> ) : payto.targetType === "iban" ? ( - <Row name={<i18n.Translate>IBAN</i18n.Translate>} value={payto.iban} /> + <Fragment> + {payto.bic !== undefined ? + <Row name={<i18n.Translate>BIC</i18n.Translate>} value={payto.bic} /> + : undefined} + <Row name={<i18n.Translate>IBAN</i18n.Translate>} value={payto.iban} /> + </Fragment> ) : undefined; const receiver = payto.params["receiver"] || undefined; diff --git a/packages/taler-wallet-webextension/src/wallet/ManageAccount/views.tsx b/packages/taler-wallet-webextension/src/wallet/ManageAccount/views.tsx index 74c585f66..832ca91b7 100644 --- a/packages/taler-wallet-webextension/src/wallet/ManageAccount/views.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ManageAccount/views.tsx @@ -521,7 +521,7 @@ function IbanAddressAccount({ field }: { field: TextFieldHandler }): VNode { onChange={(v) => { setName(v); if (!errors) { - field.onInput(`payto://iban/${number}?receiver-name=${v}`); + field.onInput(`payto://iban/${number}?receiver-name=${encodeURIComponent(v)}`); } }} /> |