Skip to content

Commit

Permalink
fix(depositform): add zero if availcollateral is not loaded (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff authored Apr 18, 2024
1 parent 41da4bd commit cd49bd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function DepositFormUi({
return snxBalance?.transferable;
}
if (collateralType?.symbol === 'USDC') {
return tokenBalance?.add(accountCollateral?.availableCollateral);
return tokenBalance?.add(accountCollateral?.availableCollateral || new Wei(0));
}
if (collateralType?.symbol !== 'WETH') {
return tokenBalance;
Expand Down

0 comments on commit cd49bd9

Please sign in to comment.