Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

fix: dont fetch logs for users who aren't logged in #1066

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

erunion
Copy link
Member

@erunion erunion commented Nov 24, 2020

🧰 What's being changed?

This stops us from fetching logs for users who aren't logged in.

🧪 Testing

You can test this by loading up example/src/Demo.jsx and changing the user variables prop to be an empty object. Refresh the page and you shouldn't see any requests towards /api/logs. Revert the change to fake a logged in state and logs should be retrieved.

@erunion erunion added the type:bug Something isn't working label Nov 24, 2020
@erunion erunion requested a review from Dashron November 24, 2020 17:55
@erunion erunion merged commit d98172e into next Dec 3, 2020
@erunion erunion deleted the fix/no-logs-for-anon-users branch December 3, 2020 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants