Skip to content

Commit

Permalink
type error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SibghatUllah1997 committed Apr 11, 2024
1 parent 526d44a commit f1fc4e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ export const getSnapHodlConfigTradingVolumeBalance = async (
if(!minimumTradingBalance || minimumTradingBalance === 0 || balanceBN.isGreaterThanOrEqualTo(minimumTradingBalance)){
totalBalance = totalBalance.plus(balanceBN);
if (totalTradingVolume[address]) {
if(typeof totalTradingVolume[address] === "string" || totalTradingVolume[address] instanceof String){
totalTradingVolume[address] = new BigNumber(totalTradingVolume[address]);
}
totalTradingVolume[address] =
totalTradingVolume[address].plus(balanceBN);
} else {
Expand Down

0 comments on commit f1fc4e2

Please sign in to comment.