From dc9a748fec99667cceeec69ced1e2685c5a90ccb Mon Sep 17 00:00:00 2001 From: Giovanni Date: Wed, 13 May 2020 10:58:41 +0200 Subject: [PATCH] Fix bug code 0 --- utils/auth.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/auth.js b/utils/auth.js index 80b1f87..7411d40 100644 --- a/utils/auth.js +++ b/utils/auth.js @@ -16,16 +16,16 @@ const jwtAuth = (axiosInstance, message, displayReply = false) => { } if (displayReply) { switch (code) { + case 0: + return message.reply( + "Username non trovato, registra il tuo username Telegram dalle impostazioni della web-app." + ); case 1: return message.reply("Username trovato, registrazione riuscita!"); case 2: return message.reply( "Account giĆ  registrato, nessuna modifica apportata." ); - case 3: - return message.reply( - "Username non trovato, registra il tuo username Telegram dalle impostazioni della web-app." - ); default: break; }