diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-25 09:31:17 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-25 14:50:45 -0300 |
commit | 0b2c03dc5e1060cd229aeafb84263f171b5a9788 (patch) | |
tree | d95fc53b31cb8188be8f4697b1a8d01495b3a41b /packages/demobank-ui/src/pages/business | |
parent | fd9ed97fdc60baaa3f74a3f7b02c6831c6d6948b (diff) | |
download | wallet-core-0b2c03dc5e1060cd229aeafb84263f171b5a9788.tar.xz |
new libeufin api
Diffstat (limited to 'packages/demobank-ui/src/pages/business')
-rw-r--r-- | packages/demobank-ui/src/pages/business/Home.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/demobank-ui/src/pages/business/Home.tsx b/packages/demobank-ui/src/pages/business/Home.tsx index 427cfc656..628ae328d 100644 --- a/packages/demobank-ui/src/pages/business/Home.tsx +++ b/packages/demobank-ui/src/pages/business/Home.tsx @@ -236,11 +236,8 @@ function CreateCashout({ if (!ratiosResult.ok) return onLoadNotOk(ratiosResult); const config = ratiosResult.data; - //FIXME: libeufin does not follow the spec - const balance = Amounts.parseOrThrow(result.data.balance); - const balanceIsDebit = true; - // const balance = Amounts.parseOrThrow(result.data.balance.amount); - // const balanceIsDebit = result.data.balance.credit_debit_indicator == "debit"; + const balance = Amounts.parseOrThrow(result.data.balance.amount); + const balanceIsDebit = result.data.balance.credit_debit_indicator == "debit"; const debitThreshold = Amounts.parseOrThrow(result.data.debit_threshold); const zero = Amounts.zeroOfCurrency(balance.currency); |