diff --git a/app/routes/discord.js b/app/routes/discord.js index 86579bca..1b126fa0 100644 --- a/app/routes/discord.js +++ b/app/routes/discord.js @@ -44,7 +44,7 @@ export default class DiscordRoute extends Route { toastNotificationTimeoutOptions ); - return { isTokenEpired: true }; + return { isTokenExpired: true }; } } catch (error) { this.toast.error(error.message, '', toastNotificationTimeoutOptions); diff --git a/app/templates/discord.hbs b/app/templates/discord.hbs index ef1fb62b..5fc79e27 100644 --- a/app/templates/discord.hbs +++ b/app/templates/discord.hbs @@ -10,7 +10,19 @@ {{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') + ) + }}

Your Discord account has been successfully linked.

@@ -20,7 +32,7 @@

Something went wrong. Please try again.

- {{else}} + {{else if (eq this.linkStatus 'not-linked')}}