From 1fb432d35fc1f03114d3e13e8ba2e2f29673c43a Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Mon, 1 Aug 2022 14:22:33 +0100 Subject: [PATCH] Make login notification less intrusive --- public/js/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 80cb971..ae7daae 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -59,13 +59,7 @@ const { success, error } = await loginOrSignupMethod(email, password); if (success) { - const { Swal } = window; - - Swal.fire( - 'Alright!', - 'That looks alright. Let\'s get on with it!', - 'success', - ); + window.app.showNotification('Logged in successfully.', 'success'); window.app.showValidSessionElements(); loginForm.reset();