mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
avoiding unnecessary error when showing discord settings section
This commit is contained in:
parent
95729dc08a
commit
bc4ea7baf4
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ function updateDiscordSettingsSection() {
|
|||
if (firebase.auth().currentUser == null) {
|
||||
$(".pageSettings .section.discordIntegration").addClass("hidden");
|
||||
} else {
|
||||
if (dbSnapshot == null) return;
|
||||
$(".pageSettings .section.discordIntegration").removeClass("hidden");
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue