Skip to content

Commit

Permalink
Don't show onboarding when user has already attended events
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester committed Oct 21, 2024
1 parent 686b53c commit 012c8d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ const PortalHomePage = ({

// Start onboarding after checking in
// TEMP: This should be saved server-side in the future
// Do not start onboarding if user already attended other events
if (attendance.length > 1) {
return;
}
const onboardingState = localStorage.getItem(config.tempLocalOnboardingKey);
if (onboardingState === 'onboarded') {
return;
Expand Down

0 comments on commit 012c8d2

Please sign in to comment.