Skip to content

fix(votes): clear success banner immediately on navigation away - #119

Merged
DavidSchmidt00 merged 1 commit into
stagingfrom
claude/fix-padel-agent-93-GvGhn
May 19, 2026
Merged

DavidSchmidt00 merged 1 commit into
stagingfrom
claude/fix-padel-agent-93-GvGhn

Conversation

@DavidSchmidt00

Copy link
Copy Markdown
Owner

Summary

  • Passes isActive={mode === 'vote'} from App.jsx to VotePage
  • VotePage clears sessionSubmitted immediately when isActive flips to false (user navigates away)
  • Previously the 10 s timer kept running in the background, so returning within 10 s still showed the banner

Test plan

  • Submit availability on a vote page
  • Immediately navigate to Find/Chat/Profile tab
  • Return to the vote page — banner should be gone
  • Verify submitting again still shows the banner immediately after submit

Generated by Claude Code

When user navigates to another tab, sessionSubmitted resets instantly
via an isActive prop rather than waiting for the 10 s timer to fire.

Co-Authored-By: AI Agent <noreply@agent>
@DavidSchmidt00
DavidSchmidt00 merged commit 7e8e6bf into staging May 19, 2026
1 check passed
@DavidSchmidt00
DavidSchmidt00 deleted the claude/fix-padel-agent-93-GvGhn branch May 19, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants