From 909cb80826ec557b403a859b5883f77a89f0b625 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Thu, 3 May 2018 10:51:27 +0200 Subject: [PATCH] Correct only one guild --- 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 824c8cc..15e7d7d 100644 --- a/src/main/resources/static/js/navabar.js +++ b/src/main/resources/static/js/navabar.js @@ -174,7 +174,7 @@ function getGuild(){ $('#guild_form').empty(); if(data.length === 1){ - Cookies.set('guild', data.id, { expires: 31 }); + Cookies.set('guild', data[0].id, { expires: 31 }); return; } data.forEach(function(element){