Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
V3 - Fix account page graph crash (#2335)
Browse files Browse the repository at this point in the history
Co-authored-by: L <lfb.access@gmail.com>
  • Loading branch information
nparigi-ledger and LFBarreto authored Mar 25, 2022
1 parent 8fd670a commit 5ba3a96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/AccountGraphCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ function AccountGraphCard({
return history?.length
? history.map(d => ({
date: d.date,
value: isNaN(d.countervalue / counterValueCurrencyMagnitude)
? 0
: d.countervalue / counterValueCurrencyMagnitude,
value: d.countervalue / counterValueCurrencyMagnitude || 0,
}))
: [];
}, [history, counterValueCurrency]);
Expand Down

0 comments on commit 5ba3a96

Please sign in to comment.