Skip to content

Commit

Permalink
Fixed condition check for linking account
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashchoudhary07 committed Aug 26, 2024
1 parent 1f3c974 commit 8807b15
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions app/templates/discord.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,19 @@
<Spinner />
</div>
{{else}}
{{#if (and @model.userData.discordId (eq @model.userData.roles.archived false))}}
{{! Added (eq @model.userData.roles.archived false) check for temporary,
For users who have left RDS before and are rejoining again now
This
TODO: 1. fix (eq @model.userData.roles.archived false) after deprecating archived role
2. Remove this check and get a flow in place for users who had left RDS previously and are coming back now
3. fix @model.userData.discordId check, which was removed, get a proper solution in place
}}
{{#if
(or
(eq @model.userData.roles.archived false)
(eq this.linkStatus 'linked')
)
}}
<div class='discord__success'>
<p class='success__text'>Your Discord account has been successfully
linked.</p>
Expand All @@ -20,7 +32,7 @@
<div class='discord__error'>
<p class='error__text'>Something went wrong. Please try again.</p>
</div>
{{else}}
{{else if (eq this.linkStatus 'not-linked')}}
<header class='header horizontal-flex w-100' data-test-header>
<img
src='RDSLogo.png'
Expand Down

0 comments on commit 8807b15

Please sign in to comment.