From 9dd946750d9e773eec8eed136d9a55778825efe9 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 14 Feb 2018 21:51:21 +0100 Subject: [PATCH] Correct undifined error --- src/main/resources/static/js/navabar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/static/js/navabar.js b/src/main/resources/static/js/navabar.js index 408c1ff..8ae0ba7 100644 --- a/src/main/resources/static/js/navabar.js +++ b/src/main/resources/static/js/navabar.js @@ -68,7 +68,7 @@ function disconnected() { nav_bar_account_link.html(disconnected_link); var modalConnection = $('#modal_connection'); modalConnection.modal(); - if(needLogin !== undefined){ + if (typeof needLogin !== 'undefined'){ modalConnection.modal('open'); }