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({
<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
......@@ -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
......
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