From 647648e66588404201c6d387419015fdf0b5db81 Mon Sep 17 00:00:00 2001 From: SofianeLasri <alasri250@gmail.com> Date: Sat, 15 Jan 2022 16:26:38 +0100 Subject: [PATCH] null --- pages/client/shops.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/client/shops.php b/pages/client/shops.php index 09699756..69b4c70a 100644 --- a/pages/client/shops.php +++ b/pages/client/shops.php @@ -222,10 +222,10 @@ // On va définir la taille de la div derrière la navbar function goToShop(id){ var shopItemDetail='<p>Type: <strong>'+$('#'+id).attr('type')+'</strong></p>'; - if($("#"+id).attr("displayName") != ""){ + if($("#"+id).attr("displayName") != "null"){ shopItemDetail+='<p>Nom personnalisé: <strong>'+decodeURIComponent($("#"+id).attr("displayName"))+'</strong></p>'; } - if($("#"+id).attr("enchants") != ""){ + if($("#"+id).attr("enchants") != "null"){ let enchants = JSON.parse(decodeURIComponent($("#"+id).attr("enchants"))); for(const [key, value] of Object.entries(enchants)){ shopItemDetail+='<p>Enchantement: <strong>'+key+'</strong> ('+value+')</p>'; -- GitLab