-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
user.expensifyNewsStatus is overwritten on page reload #3569
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Triggered auto assignment to @Jag96 ( |
Posted on Upwork here - https://www.upwork.com/jobs/~01984a0737ed8ba518. |
@Jag96 |
@parasharrajat good find! For context, after looking into this it seems that on the API side we've updated the value of It looks like there's still an issue here where the value is being stored as an integer (prop warning), so this issue can remain and the fix can be to update the value that is stored in Onyx so it is a boolean rather than an integer.
cc @jasperhuangg since you're reviewing the API PR |
I agree @Jag96. Please let me know when the PR is merged for the backend. Thanks. |
The API change has been deployed to production. |
@Jag96 If this is still available for external. Then we just need to convert the Integer from API response to boolean before saving it to Onyx. Onyx.merge(ONYXKEYS.USER, {loginList, expensifyNewsStatus: !!expensifyNewsStatus}); |
@parasharrajat yep it's still available for external. I'll let @Jag96 review your proposal here as the best next step |
@parasharrajat that solution sounds good to me! I've invited you to the Upwork job, once you accept feel free to create a PR. |
PR is up here #3717 |
Reopening to keep track of payment hold time |
I think this is fine to pay out now since its a very small change, it's been merged for 7 days, and I just confirmed it's working properly on staging. Paid! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Go to
Settings
->Preferences
Toggle the
Notifications
switch:Open the JS console and go to
Application
->LocalStorage
->[host]
Search for the
user
value in localstorage, and confirm thatexpensifyNewsStatus
is set to true or falseIf necessary, toggle it back to
true
. Verify that the value is set totrue
in localstorage.Refresh the page.
Expected Result:
The value in localStorage should remain
true
. The toggle switch should be active.Actual Result:
The value in localStorage is
0
. The toggle switch is deactivated.Workaround:
None.
Platform:
Where is this issue occurring?
Web ❌
iOS
Android
Desktop App
Mobile Web
Version Number: Version 1.0.65-0 (1.0.65-0)
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/167397
Upwork job link: https://www.upwork.com/jobs/~01984a0737ed8ba518.
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: