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

fix(web): actually inform user that they can deploy #47

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

annesylvie
Copy link
Contributor

I was checking if the logged in user's id was in a set of objects, which would of course not work. I just need to pull out the ids from the users that do not have commits.

@annesylvie annesylvie self-assigned this Nov 7, 2023
tommilligan
tommilligan previously approved these changes Nov 7, 2023
const userIdsWithoutCommits = new Set(
usersWithoutCommits.map((user) => user.id),
);
if (loginData.data && userIdsWithoutCommits.has(loginData.data.id))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Already existing, but we should have braces around the condition blocks here. Not using braces for if statements is weird (I'm actually amazed eslint doesn't catch on this by default).

Will push a commit that fixes and adds the eslint rule

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might be something to do with my env to be honest.

@tommilligan tommilligan merged commit f2749a1 into master Nov 7, 2023
1 check 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.

None yet

2 participants