Correct typo and guild pop up when no mutual guild

This commit is contained in:
Sebastien 2018-12-03 22:19:11 +02:00
parent cff1a49b40
commit a1b8c4761c
2 changed files with 4 additions and 1 deletions

View File

@ -98,6 +98,9 @@ function getGuild(){
$('#guild_form').empty(); $('#guild_form').empty();
if(data.length === 0 && location.pathname !== "/") if(data.length === 0 && location.pathname !== "/")
window.location.replace("/"); window.location.replace("/");
if(data.length === 0){
return;
}
else if(data.length === 1){ else if(data.length === 1){
Cookies.set('guild', data[0].id, { expires: 31 }); Cookies.set('guild', data[0].id, { expires: 31 });

View File

@ -73,7 +73,7 @@
<div class="col m6 s12 center flow-text"> <div class="col m6 s12 center flow-text">
<h2>Oh no !</h2> <h2>Oh no !</h2>
<h4>We don't have any mutual server !</h4> <h4>We don't have any mutual server !</h4>
<h5>You can chance this by inviting me with this button !</h5> <h5>You can change this by inviting me with this button !</h5>
<a th:href="${inviteLink}" class="btn blue pulse" style="margin-top: 10px" href="/login" target="_blank">Invite me !</a> <a th:href="${inviteLink}" class="btn blue pulse" style="margin-top: 10px" href="/login" target="_blank">Invite me !</a>
</div> </div>