Skip to content

Commit

Permalink
fix: VeCakePreview
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMomota committed Feb 5, 2024
1 parent 5019a78 commit baa6750
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useCakePrice } from 'hooks/useCakePrice'
import { useRouter } from 'next/router'
import { useMemo } from 'react'
import { useCakeLockStatus } from 'views/CakeStaking/hooks/useVeCakeUserInfo'
import { CakeLockStatus } from 'views/CakeStaking/types'
import { Header } from 'views/TradingReward/components/YourTradingReward/VeCake/Header'
import { NoLockingCakeModal } from 'views/TradingReward/components/YourTradingReward/VeCake/NoLockingCakeModal'
import {
Expand Down Expand Up @@ -38,7 +39,7 @@ export const VeCakePreview: React.FC<React.PropsWithChildren<VeCakePreviewProps>
const { t } = useTranslation()
const router = useRouter()
const cakePriceBusd = useCakePrice()
const { cakeLocked, cakeLockExpired } = useCakeLockStatus()
const { status, cakeLockExpired } = useCakeLockStatus()
const timeUntil = getTimePeriods(timeRemaining)

const [onPresentNoLockingCakeModal] = useModal(
Expand Down Expand Up @@ -128,7 +129,7 @@ export const VeCakePreview: React.FC<React.PropsWithChildren<VeCakePreviewProps>

<VeCakePreviewTextInfo mb="24px" endTime={endTime} thresholdLockAmount={thresholdLockAmount} />

{!cakeLocked ? (
{status === CakeLockStatus.NotLocked ? (
<VeCakeButtonWithMessage
messageText={t('Get veCAKE to start earning')}
buttonText={t('Get veCAKE')}
Expand Down

0 comments on commit baa6750

Please sign in to comment.