Skip to content

Commit

Permalink
Improve validate spin button and fix achievement
Browse files Browse the repository at this point in the history
  • Loading branch information
nalves599 committed Feb 17, 2025
1 parent 2802833 commit da4d5ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export default function ValidateSpinButton({
disabled={!isEligible}
onClick={validateSpinWheel}
>
<FerrisWheel size={16} />
Validate Spin the Wheel ({spinWheelData?.signatures.length ?? 0}/
{SPIN_WHEEL_MAXIMUM})
<FerrisWheel size={16} />(
{spinWheelData?.redeemed
? "Already redeemed"
: `Validate Spin the Wheel ${spinWheelData?.signatures.length ?? 0}/ ${SPIN_WHEEL_MAXIMUM}`}
)
</button>
);
}
2 changes: 1 addition & 1 deletion src/components/user/AchievementTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function AchievementTile({
return (
<>
<div
className={`size-30 rounded-full shadow-md cursor-pointer ${achieved ? "bg-white" : "bg-gray-200 grayscale opacity-25"}`}
className={`size-20 rounded-full shadow-md cursor-pointer ${achieved ? "bg-white" : "bg-gray-200 grayscale opacity-25"}`}
onClick={() => setIsOpen(true)}
>
<Image
Expand Down

0 comments on commit da4d5ed

Please sign in to comment.