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

[Affiliate]local storage data may be deleted when switch between accounts #1822

Open
elena-zh opened this issue Nov 11, 2021 · 5 comments
Open
Assignees
Labels
app:CowSwap CowSwap app Bug Something isn't working Medium Severity indicator. It causes some undesirable behavior, but the system is still functional Protofire Handled by Protofire development team

Comments

@elena-zh
Copy link

elena-zh commented Nov 11, 2021

Originally reported in
#1821 (comment)

I noticed, that local storage data may be deleted at a moment.
Try to catch at which exactly one

I have done several transactions with this accout: wrap/unwrap/approve token, then I have had cancelled and expired transaction.
https://protocol-explorer.staging.gnosisdev.com/address/0x7bc89822e9353b0b1cffcd61b73e32b848bb2caf
Afterwards I switched to another account, returned back and placed a successful order.
So you can see that transactions history is empty, no referral code is stored in the local storage
local.jpg

Steps:

  1. share a referral code to an account
  2. switch to another account
  3. go back to the 1st account
  4. navigate to the profile page

AR: local storage is cleared out, transactions history is missing

@elena-zh elena-zh added app:CowSwap CowSwap app Protofire Handled by Protofire development team Medium Severity indicator. It causes some undesirable behavior, but the system is still functional Bug Something isn't working labels Nov 11, 2021
@elena-zh
Copy link
Author

The current issue also affects regular banners: closed banners appear again and again
image

@ramirotw
Copy link
Contributor

So you can see that transactions history is empty, no referral code is stored in the local storage

@elena-zh I couldn't reproduce the localstorage data being cleared by following the steps, could you record a video?

Regarding the referral code that is removed, that could happen after a successful 1st trade to prevent showing up the banner later.

@elena-zh
Copy link
Author

elena-zh commented Nov 15, 2021

@ramirotw , I'm also no longer able to reproduce the issue in production environment..
Let close it for now then..

@elena-zh elena-zh changed the title [1.4.2] local storage data may be deleted when switch between accounts [Affiliate]local storage data may be deleted when switch between accounts Dec 27, 2021
@elena-zh
Copy link
Author

I'm reopening the issue as it is still reproducible: I have faced it several times when tested #1996

@elena-zh
Copy link
Author

@ramirotw , just FYI: I have retested the issue after your changes in #2484 , and it is still reproducible there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
app:CowSwap CowSwap app Bug Something isn't working Medium Severity indicator. It causes some undesirable behavior, but the system is still functional Protofire Handled by Protofire development team
Projects
None yet
Development

No branches or pull requests

2 participants