Skip to content

Commit 4aacd78

Browse files
committed
feat: adding some more refactor
1 parent d8b34d3 commit 4aacd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/dashboard/DashboardTopPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const DashboardTopPanel = () => {
143143
// Aggregate total claimable rewards (base + merit)
144144
const claimableRewardsUsd = baseClaimableRewardsUsd + meritRewardsUsd;
145145
const loanToValue =
146-
user?.totalCollateralMarketReferenceCurrency === '0'
146+
userState?.totalCollateralBase === '0'
147147
? '0'
148148
: valueToBigNumber(userState?.totalDebtBase || '0')
149149
.dividedBy(userState?.totalCollateralBase || '1')

0 commit comments

Comments
 (0)