-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Desktop]Follow up of #10064 - Rewards is turned off instead of reset when page is reloaded #10934
Comments
This is what is happening on all OS Linux/MacOS - Go to rewards menu -> Reset -> Click Reset -> Popup modal ask for confirmation -> Rewards goes into pre-opt in page (yes i'm button) Windows - Go to rewards menu -> Reset -> Click reset -> popup modal asks for confirmation -> nothing happens -> reload the page -> rewards is turned off not reset Once reset on windows is fixed issues #10937, #10939, #10935, #10940, #10941, #10943 will all become obsolete/invalid |
The issue here is that you can't delete an open file on Windows, but reset is trying to delete both the log file and the database file without closing them first. Closing those files during reset seemed to trigger a lot of errors as most of our code doesn't seem to expect that situation. @NejcZdovc Should I go through and make the code handle that situation or is there a better solution here? |
@emerick that would be great if we can handle this situation with the current approach. |
Verification passed on
|
Description
Follow up of #10064 - Rewards is turned off instead of getting reset. Reloading the rewards page causes it to change to off state
Steps to Reproduce
Actual result:
Rewards is turned off when reloading the page after trying to reset rewards
After resetting rewards:

Page refresh after resetting rewards:

Expected result:
Rewards should be reset in brave://rewards page without page refresh
Reproduces how often:
Always
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
cc: @brave/legacy_qa @rebron @NejcZdovc
The text was updated successfully, but these errors were encountered: