Skip to content

Conversation

@tfrg
Copy link
Collaborator

@tfrg tfrg commented Nov 3, 2025

Description

When switching accounts, the previous account's referral address was not cleared if the new account had no valid referrer, causing stale data to persist.

Details

  • Explicitly set referral address to empty string when no valid referrer is found
  • Extract validation logic into isValidApiReferrer for better readability
  • Ensure clean state management across account switches

@vercel
Copy link

vercel bot commented Nov 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
gnoswap-interface Ready Ready Preview Comment Nov 3, 2025 8:41am

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 3, 2025

@tfrg tfrg merged commit 59a6cf6 into develop Nov 3, 2025
6 checks passed
@tfrg tfrg deleted the GSW-2379-referral-address-state-cleanup branch November 3, 2025 08:58
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.

3 participants