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

Bugfix: User secrets #214

Merged
merged 6 commits into from
Nov 8, 2021
Merged

Bugfix: User secrets #214

merged 6 commits into from
Nov 8, 2021

Conversation

sameer-coder
Copy link
Contributor

@sameer-coder sameer-coder commented Nov 5, 2021

This PR fixes issue #213

Closes #213

@sameer-coder sameer-coder marked this pull request as ready for review November 6, 2021 12:59
src/lib/secretsManager.ts Outdated Show resolved Hide resolved
src/screens/HomeScreen.tsx Outdated Show resolved Hide resolved
if (user) {
const secrets = await secretsManager.getAllByUser(user.uid)

if (mounted) setSecrets(secrets)
Copy link
Member

@simoneb simoneb Nov 8, 2021

Choose a reason for hiding this comment

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

for consistency

Suggested change
if (mounted) setSecrets(secrets)
if (mounted) {
setSecrets(secrets)
}

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.

Bug: User can see secrets belonging to another user
2 participants