Skip to content
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

Post beta fixes #352

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Post beta fixes #352

merged 2 commits into from
Oct 25, 2023

Conversation

nop33
Copy link
Member

@nop33 nop33 commented Oct 23, 2023

@mvaivre I am not sure why we have so few analytics recorded on PostHog... My dev client seems to be working fine once I remove the condition that checks if __DEV__ is true.

https://stackoverflow.com/questions/34315274/react-native-detect-dev-or-production-env

I hope this PR fixes the issue...

@nop33 nop33 requested a review from mvaivre October 23, 2023 15:20
options={{
host: PUBLIC_POSTHOG_HOST,
disableGeoip: true,
enable: settingsLoadedFromStorage && analytics && !!analyticsId,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be that this line was the issue? :/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs say:

    // If set to false, tracking will be disabled until `optIn` is called

https://posthog.com/docs/libraries/react-native#configuration-options

@nop33 nop33 changed the title Fix analytics Post beta fixes Oct 24, 2023
@@ -59,7 +59,7 @@ const AddressCard = ({ style, addressHash, onSettingsPress }: AddressCardProps)

const [loading, setLoading] = useState(false)

const totalAddressBalance = BigInt(address?.balance ?? 0) + BigInt(address?.lockedBalance ?? 0)
const totalAddressBalance = BigInt(address?.balance ?? 0)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't believe we did not notice this mistake... User reported it at #353

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wth!

@nop33 nop33 merged commit 077fe43 into master Oct 25, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants