Skip to content

Commit

Permalink
Merge pull request #57 from OriginProtocol/fix/earned
Browse files Browse the repository at this point in the history
fix: null check data
  • Loading branch information
toniocodo authored Oct 4, 2023
2 parents 9df7a3d + 08ee457 commit 0a06772
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 0a06772

Please sign in to comment.