Skip to content

Commit 11c5a83

Browse files
VGR-GITclaude
andcommitted
fix(rewards): use truthy check for winnerVerificationCode instead of != null
Co-authored-by: VGR-GIT <vangulckrik@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ee9c23b commit 11c5a83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/UI/Rewards/Views/OndoCampaignDetailsView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const OndoCampaignDetailsView: React.FC = () => {
193193
!hasPresentedWinningViewRef.current &&
194194
campaign &&
195195
getCampaignStatus(campaign) === 'complete' &&
196-
participantOutcome?.winnerVerificationCode != null &&
196+
participantOutcome?.winnerVerificationCode &&
197197
participantOutcome?.outcomeStatus === 'pending' &&
198198
effectiveCampaignId
199199
) {
@@ -400,7 +400,7 @@ const OndoCampaignDetailsView: React.FC = () => {
400400
{getCampaignStatus(campaign) === 'complete' &&
401401
participantOutcome && (
402402
<Box twClassName="mt-3">
403-
{participantOutcome.winnerVerificationCode != null &&
403+
{participantOutcome.winnerVerificationCode &&
404404
participantOutcome.outcomeStatus === 'pending' ? (
405405
<Pressable
406406
accessibilityLabel={strings(

0 commit comments

Comments
 (0)