GoodDollar / GoodDAPP

GoodDollar.org Wallet is the simplest access point to Claim your daily G$. It Is based on web3 and React native web.
good-dapp.vercel.app
MIT License
106 stars 55 forks source link

Error: [AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use... #4177

Closed sentry-io[bot] closed 8 months ago

sentry-io[bot] commented 9 months ago

When saving GD_inviteCode it seems we sometimes pass undefined. Lets make sure we are not incorrectly fetching the invite code and just saving undefined when it simply doesnt exists

Sentry Issue: GOODDAPP-PFHW

Error: [AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.
Passed value: undefined
Passed key: GD_inviteCode

  at <global> (src/lib/utils/asyncStorage.js:70:27)
...
(5 additional frame(s) were not displayed)
L03TJ3 commented 8 months ago

fixed here: https://github.com/GoodDollar/GoodDAPP/commit/cda908b4ac9cd615dbce310ce0be322402e4744a

L03TJ3 commented 8 months ago

This can be tested by trying to self-invite

vldkhh commented 8 months ago

it doesn't happen for new release