rainbow-me / rainbow

🌈‒ the Ethereum wallet that lives in your pocket
https://rainbow.me
GNU General Public License v3.0
3.95k stars 627 forks source link

Claim bug fix #6182

Closed benisgold closed 1 month ago

benisgold commented 1 month ago

Fixes APP-1918

What changed (plus any additional context for devs)

The problem: Grant enabled claimables on TF, and then downloaded prod. He then claimed a few claimables. The claims were successful, however the claimables data displayed on the wallet screen failed to update, and never updated even after a day of waiting and restarting the app.

Why it happened: The way feature flags are accessed on the wallet screen is different than everywhere else in the app, which can cause partial enablement of features when switching from TF to prod. This is what happened with claimables. The claimables feature SHOULD have been automatically disabled when switching to prod, however it was still enabled on the wallet screen while the claimables query was disabled (which caused the data on the wallet screen to never update).

The solution: I fixed the way feature flags values are accessed on the wallet screen. This change guarantees that in prod the feature flag values will always be the default ones, not the ones leftover from TF. Other changes:

Screen recordings / screenshots

What to test

set condition on line 17 of experimentalHooks.ts to false and make sure feature flags work properly

linear[bot] commented 1 month ago

APP-1918 Daily moxie claim amount not updating in iOS app

brunobar79 commented 1 month ago

Launch in simulator or device for 3f21063dfd9df39bd3b4574f8c207661ecfa57ed

brunobar79 commented 1 month ago

Launch in simulator or device for 8a25e6b0031f1d2230ca3769045608ffd4d0bdee