Correct only one guild

This commit is contained in:
Sebastien 2018-05-03 10:51:27 +02:00
parent bb68efc27d
commit 909cb80826

View File

@ -174,7 +174,7 @@ function getGuild(){
$('#guild_form').empty(); $('#guild_form').empty();
if(data.length === 1){ if(data.length === 1){
Cookies.set('guild', data.id, { expires: 31 }); Cookies.set('guild', data[0].id, { expires: 31 });
return; return;
} }
data.forEach(function(element){ data.forEach(function(element){