From 950984d02880d6de9b1fb226c5ea89b7281c6b94 Mon Sep 17 00:00:00 2001 From: mohamadarif03 Date: Wed, 20 Nov 2024 10:48:48 +0700 Subject: [PATCH] push --- resources/views/user/layouts/header.blade.php | 12 ++++---- .../views/user/pages/scripts/blogs.blade.php | 30 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) 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" + }); + } } }); }); diff --git a/resources/views/user/pages/scripts/blogs.blade.php b/resources/views/user/pages/scripts/blogs.blade.php index e72e4bd4..d0b54b17 100644 --- a/resources/views/user/pages/scripts/blogs.blade.php +++ b/resources/views/user/pages/scripts/blogs.blade.php @@ -1,45 +1,44 @@