[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/04: parse instead of fromFloat
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/04: parse instead of fromFloat |
Date: |
Tue, 20 Jun 2023 19:29:08 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit ac9b4bfd0edc8d4f8c396837d2192fb6895e5b29
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Jun 20 11:49:16 2023 -0300
parse instead of fromFloat
---
packages/demobank-ui/src/pages/BusinessAccount.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/demobank-ui/src/pages/BusinessAccount.tsx
b/packages/demobank-ui/src/pages/BusinessAccount.tsx
index d58840cc8..7f69cd9f0 100644
--- a/packages/demobank-ui/src/pages/BusinessAccount.tsx
+++ b/packages/demobank-ui/src/pages/BusinessAccount.tsx
@@ -249,7 +249,9 @@ function CreateCashout({
const sellRate = config.ratios_and_fees.sell_at_ratio;
const sellFee = !config.ratios_and_fees.sell_out_fee
? zero
- : Amounts.fromFloat(config.ratios_and_fees.sell_out_fee, balance.currency);
+ : Amounts.parseOrThrow(
+ `${balance.currency}:${config.ratios_and_fees.sell_out_fee}`,
+ );
const fiatCurrency = config.fiat_currency;
if (!sellRate || sellRate < 0) return <div>error rate</div>;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.