diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-25 14:49:47 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-25 14:50:46 -0300 |
commit | ea0738ccd585445d7e2080d9009025dde9cf22c5 (patch) | |
tree | 1e89ceadefb2b66d8c762358c794f070c2f10dcd /packages/demobank-ui/src/pages/AccountPage | |
parent | 820f953b96b2b2852c32dc16a2fa920c6c717788 (diff) | |
download | wallet-core-ea0738ccd585445d7e2080d9009025dde9cf22c5.tar.xz |
better /config error
Diffstat (limited to 'packages/demobank-ui/src/pages/AccountPage')
-rw-r--r-- | packages/demobank-ui/src/pages/AccountPage/state.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/pages/AccountPage/state.ts b/packages/demobank-ui/src/pages/AccountPage/state.ts index c212e7484..ca7e1d447 100644 --- a/packages/demobank-ui/src/pages/AccountPage/state.ts +++ b/packages/demobank-ui/src/pages/AccountPage/state.ts @@ -75,9 +75,7 @@ export function useComponentState({ account, goToBusinessAccount, goToConfirmOpe }; } - // FIXME: balance - const balanceIsDebit = true; - // data.balance.credit_debit_indicator == "debit"; + const balanceIsDebit = data.balance.credit_debit_indicator == "debit"; const limit = balanceIsDebit ? Amounts.sub(debitThreshold, balance).amount : Amounts.add(balance, debitThreshold).amount; |