Commit aa06db76 authored by Luke Donato's avatar Luke Donato Committed by GitHub

add optional chaining for stakingInfo (#1950)

parent f5b601ee
...@@ -183,7 +183,7 @@ export default function Manage({ ...@@ -183,7 +183,7 @@ export default function Manage({
<Trans>Pool Rate</Trans> <Trans>Pool Rate</Trans>
</TYPE.body> </TYPE.body>
<TYPE.body fontSize={24} fontWeight={500}> <TYPE.body fontSize={24} fontWeight={500}>
{stakingInfo.active ? ( {stakingInfo?.active ? (
<Trans> <Trans>
{stakingInfo.totalRewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '} {stakingInfo.totalRewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '}
UNI / week UNI / week
...@@ -317,7 +317,7 @@ export default function Manage({ ...@@ -317,7 +317,7 @@ export default function Manage({
</span> </span>
{stakingInfo.active ? ( {stakingInfo?.active ? (
<Trans> <Trans>
{stakingInfo.rewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '} {stakingInfo.rewardRate?.multiply(BIG_INT_SECONDS_IN_WEEK)?.toFixed(0, { groupSeparator: ',' })}{' '}
UNI / week UNI / week
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment