From 0b9089b5ce2fd9c190c0e08c39920e88474fce46 Mon Sep 17 00:00:00 2001
From: David Chee <104849031+SirSaltyy@users.noreply.github.com>
Date: Fri, 20 Sep 2024 14:58:38 -0700
Subject: [PATCH] Update redeem-sweeps-buttons.tsx (#2894)
---
web/components/profile/redeem-sweeps-buttons.tsx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/web/components/profile/redeem-sweeps-buttons.tsx b/web/components/profile/redeem-sweeps-buttons.tsx
index 57e4a6d760..55f51b6591 100644
--- a/web/components/profile/redeem-sweeps-buttons.tsx
+++ b/web/components/profile/redeem-sweeps-buttons.tsx
@@ -12,9 +12,9 @@ export function RedeemSweepsButtons(props: { user: User; className?: string }) {
const redeemableCash = redeemable?.redeemablePrizeCash ?? 0
const router = useRouter()
- const canRedeem = redeemableCash > 0 && !blockFromSweepstakes(user)
+ const canRedeem = user.sweepstakesVerified && !blockFromSweepstakes(user)
- const amount = useKYCGiftAmount(user)
+ const kycGift = useKYCGiftAmount(user)
const onClick = () => {
router.push('/redeem')
@@ -25,23 +25,23 @@ export function RedeemSweepsButtons(props: { user: User; className?: string }) {
{canRedeem ? (
) : (
)}