-
Notifications
You must be signed in to change notification settings - Fork 70
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
Auth-web: Magic link bug fixing #2533
Conversation
/gcbrun |
Temporary Url for review: https://bcregistry-account-dev--pr-2533-havced7i.web.app |
@@ -581,15 +581,19 @@ export default class EntityManagement extends Mixins(AccountMixin, AccountChange | |||
try { | |||
await this.syncOrganization(this.currentAccountSettings.id) | |||
await this.addOrgSettings(this.currentOrganization) | |||
this.isLoading = 1 // truthy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just use a boolean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it used !!isLoading I think, not too sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please just change it to a boolean, int makes sense if you're addressing a panel number etc, otherwise writing this.isLoading =1 // truthy and falsy
is cleaner with
this.isLoading = true
this.isLoading = false
Kudos, SonarCloud Quality Gate passed! |
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).