diff --git a/src/main/resources/static/js/navabar.js b/src/main/resources/static/js/navabar.js index 1e99b87..3ea931e 100644 --- a/src/main/resources/static/js/navabar.js +++ b/src/main/resources/static/js/navabar.js @@ -98,6 +98,9 @@ function getGuild(){ $('#guild_form').empty(); if(data.length === 0 && location.pathname !== "/") window.location.replace("/"); + if(data.length === 0){ + return; + } else if(data.length === 1){ Cookies.set('guild', data[0].id, { expires: 31 }); diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 340e6b5..2bf6cb0 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -73,7 +73,7 @@