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
108 stars 56 forks source link

TypeError: Uncaught exception at:: undefined is not an object (evaluating '(0,i.usePostHog)().getFeatureFlag... #4176

Closed sentry-io[bot] closed 10 months ago

sentry-io[bot] commented 11 months ago

This seems to started after latest posthog upgrade. Is there some delay required? maybe report on posthog and downgrade?

Sentry Issue: GOODDAPP-1AGFS

TypeError: Uncaught exception at:: undefined is not an object (evaluating '(0,i.usePostHog)().getFeatureFlagPayload')
  at exports.useSecurityDialog (components/security/securityDialog.js:8:19)
  at welcome (components/auth/login/WelcomeScreen.js:44:47)
...
(9 additional frame(s) were not displayed)
L03TJ3 commented 11 months ago

wip/temp fix here: https://github.com/GoodDollar/GoodDAPP/commit/c3a480d3bd950b51f9da97029479611caaa37e1b but will have additional testing/debugging done for a more proper fix

L03TJ3 commented 11 months ago

final fix here: https://github.com/GoodDollar/GoodDAPP/commit/d09c49207ad8c87275995ba664848ebf9c25783a

L03TJ3 commented 10 months ago

Found a bug on local development, pending fix is in this pr: https://github.com/GoodDollar/GoodDAPP/pull/4182

L03TJ3 commented 10 months ago

QA TestCase:

  1. make sure relevant features are enabled/disabled (eg. task is managed by posthog)
  2. logout > login: should not break with whitescreen (android)
vldkhh commented 10 months ago

fixed.

image.png