Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Fix Affiliate error banner showing up #1754

Merged
merged 5 commits into from
Nov 3, 2021

Conversation

ramirotw
Copy link
Contributor

@ramirotw ramirotw commented Nov 2, 2021

Summary

Closes #1749

This fixes an issue where an invalid referral banner was displayed after refreshing the page where no referral query parameter was present. Cause: An invalid referral was set in the address bar and persisted in storage, later on through navigation the referral query parameter is removed but the error banner is still showing up because the referral object was still present in storage.

To Test

  1. Connect the wallet
  2. Go to /profile and copy the referral url
  3. Paste the referral url into the address bar and remove the last character from the referral address, an error banner saying the referral is invalid should appear
  4. Close the error banner and go to another url, like /about
  5. Refresh the page

ER: The error banner shouldn't appear again

@ramirotw ramirotw added the Protofire Handled by Protofire development team label Nov 2, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2021

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@anxolin anxolin merged commit 1154232 into release/1.4.0 Nov 3, 2021
@alfetopito alfetopito deleted the ramirotw/issue-1749-referral-banner branch November 3, 2021 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Protofire Handled by Protofire development team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants