diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-19 23:02:24 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-19 23:02:24 -0300 |
commit | c09caa5fdca91fb6ded6b2ce8caf1620c0273b80 (patch) | |
tree | 70d73ec63630b13fe83e738d606e2f4eabf5d235 /packages/taler-wallet-webextension/src/components/PaymentButtons.tsx | |
parent | 630f53f8a5721b2f5f2d43772aa4de7146df58fc (diff) | |
download | wallet-core-c09caa5fdca91fb6ded6b2ce8caf1620c0273b80.tar.xz |
wip, found #8653
Diffstat (limited to 'packages/taler-wallet-webextension/src/components/PaymentButtons.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/PaymentButtons.tsx | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx b/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx index 8eb3c6e7a..7fa0376c9 100644 --- a/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx +++ b/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx @@ -80,39 +80,34 @@ export function PaymentButtons({ case "age-acceptable": { BalanceMessage = i18n.str`Balance is not enough because you have ${Amounts.stringifyValue( payStatus.balanceDetails.balanceAgeAcceptable, - )} ${amount.currency} to pay for contracts restricted for age above ${ - payStatus.contractTerms.minimum_age - } years old`; + )} ${amount.currency} to pay for this contract which is restricted.`; break; } case "available": { BalanceMessage = i18n.str`Balance is not enough because you have ${Amounts.stringifyValue( payStatus.balanceDetails.balanceAvailable, - )} ${amount.currency} available.`; + )} ${amount.currency} available.`; break; } case "merchant-acceptable": { BalanceMessage = i18n.str`Balance is not enough because merchant will just accept ${Amounts.stringifyValue( payStatus.balanceDetails.balanceReceiverAcceptable, - )} ${ - amount.currency - } . To know more you can check which exchange and auditors the merchant trust.`; + )} ${amount.currency + } . To know more you can check which exchange and auditors the merchant trust.`; break; } case "merchant-depositable": { BalanceMessage = i18n.str`Balance is not enough because merchant will just accept ${Amounts.stringifyValue( payStatus.balanceDetails.balanceReceiverDepositable, - )} ${ - amount.currency - } . To know more you can check which wire methods the merchant accepts.`; + )} ${amount.currency + } . To know more you can check which wire methods the merchant accepts.`; break; } case "material": { BalanceMessage = i18n.str`Balance is not enough because you have ${Amounts.stringifyValue( payStatus.balanceDetails.balanceMaterial, - )} ${ - amount.currency - } to spend right know. There are some coins that need to be refreshed.`; + )} ${amount.currency + } to spend right know. There are some coins that need to be refreshed.`; break; } case "fee-gap": { @@ -123,9 +118,8 @@ export function PaymentButtons({ payStatus.balanceDetails.maxEffectiveSpendAmount, ).amount, ), - )} ${ - amount.currency - } more balance in your wallet or ask your merchant to cover more of the fees.`; + )} ${amount.currency + } more balance in your wallet or ask your merchant to cover more of the fees.`; break; } default: |