This commit is contained in:
parent
06c09e8312
commit
ed79e52441
@ -96,13 +96,13 @@
|
|||||||
showTwitchLinkBtn = !twitchToken || tokenExpireSoon;
|
showTwitchLinkBtn = !twitchToken || tokenExpireSoon;
|
||||||
|
|
||||||
if (!twitchToken) {
|
if (!twitchToken) {
|
||||||
twitchBtnLabel = "Link to Twitch";
|
twitchBtnLabel = "Login with Twitch";
|
||||||
}
|
}
|
||||||
if (tokenExpireSoon) {
|
if (tokenExpireSoon) {
|
||||||
twitchBtnLabel = "Renew Twitch token"
|
twitchBtnLabel = "Renew Twitch token"
|
||||||
}
|
}
|
||||||
if (twitchToken) {
|
if (twitchToken) {
|
||||||
twitchBtnLabel = "Already linked"
|
twitchBtnLabel = "Already logged in"
|
||||||
}
|
}
|
||||||
|
|
||||||
twitchBtnTitle = twitchToken && tokenExpireInDays > 0 ? `Days left: ${tokenExpireInDays}` : null;
|
twitchBtnTitle = twitchToken && tokenExpireInDays > 0 ? `Days left: ${tokenExpireInDays}` : null;
|
||||||
|
Reference in New Issue
Block a user