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

Commit

Permalink
add optional chaining for stakingInfo (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukedonato authored Jul 13, 2021
1 parent f5b601e commit aa06db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Earn/Manage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default function Manage({
<Trans>Pool Rate</Trans>
</TYPE.body>
<TYPE.body fontSize={24} fontWeight={500}>
{stakingInfo.active ? (
{stakingInfo?.active ? (
<Trans>
{stakingInfo.totalRewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '}
UNI / week
Expand Down Expand Up @@ -317,7 +317,7 @@ export default function Manage({
</span>

{stakingInfo.active ? (
{stakingInfo?.active ? (
<Trans>
{stakingInfo.rewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '}
UNI / week
Expand Down

0 comments on commit aa06db7

Please sign in to comment.