diff --git a/resources/views/user/layouts/header.blade.php b/resources/views/user/layouts/header.blade.php index bb14875e..ecf408fa 100644 --- a/resources/views/user/layouts/header.blade.php +++ b/resources/views/user/layouts/header.blade.php @@ -351,11 +351,13 @@ function selectSubcategory(value) { $('.photo-user').attr('src', profileImage1); }, error: function(xhr) { - Swal.fire({ - title: "Terjadi Kesalahan!", - text: "Tidak dapat memuat data profil.", - icon: "error" - }); + if (response.status === 401) { + Swal.fire({ + title: "Terjadi Kesalahan!", + text: "Tidak dapat memuat data profil.", + icon: "error" + }); + } } }); });