Skip to content

Commit

Permalink
Merge pull request #2531 from hollaex/develop-ram
Browse files Browse the repository at this point in the history
Fixed the currency wallet UI issue
  • Loading branch information
abeikverdi authored Dec 19, 2023
2 parents e3797f7 + 5c84c26 commit 16d154e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions web/src/containers/Wallet/CurrencyWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,6 @@ class Wallet extends Component {
const balanceValue = balance[`${currency}_balance`] || 0;
const availableBalanceValue = balance[`${currency}_available`] || 0;

const isBalancePercentage =
chartData.length &&
chartData.some((value) => {
return (
currency.includes(value.symbol) &&
value.balancePercentage.split('%')[0] > 0
);
});

return (
<div className="currency-wallet-wrapper">
<div className="d-flex mt-5 mb-5">
Expand Down Expand Up @@ -277,7 +268,7 @@ class Wallet extends Component {
)}
</EditWrapper>
</span>
{!isBalancePercentage ? (
{availableBalanceValue <= 0 ? (
<React.Fragment>
<div className="wallet-icon-wrapper">
<img
Expand Down

0 comments on commit 16d154e

Please sign in to comment.