Skip to content

Commit

Permalink
fix: null check data
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo authored Oct 4, 2023
1 parent 9df7a3d commit 08ee457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/oeth/history/src/components/APYContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function APYContainer() {
defaultMessage: 'Lifetime Earnings (OETH)',
})}
value={intl.formatNumber(
+formatEther(BigInt(data.earned ?? '0')),
+formatEther(BigInt(data?.earned ?? '0')),
balanceFormat,
)}
isLoading={isConnected && isLoading}
Expand Down

0 comments on commit 08ee457

Please sign in to comment.