From 33c20a71aa25efae1cca78636737a3be2b4184fd Mon Sep 17 00:00:00 2001
From: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com>
Date: Mon, 26 Aug 2024 23:42:50 +0530
Subject: [PATCH] Discord-RDS linking fix (#609)
* chore: fix spelling mistake
* Fixed condition check for linking account
---
app/routes/discord.js | 2 +-
app/templates/discord.hbs | 16 ++++++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
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 @@
Your Discord account has been successfully linked.
@@ -20,7 +32,7 @@Something went wrong. Please try again.