Skip to content

Commit

Permalink
Update header.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jovitamaharani committed Nov 20, 2024
2 parents 7f3c0f3 + 950984d commit c476db2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions resources/views/user/layouts/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
}
}
});
});
Expand Down

0 comments on commit c476db2

Please sign in to comment.