diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index 629d2dc..3daf978 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -85,6 +85,9 @@ $(() => { if (xhr.status === 409) { callback(JSON.parse(xhr.responseText)); return; + } else if (xhr.status === 401) { + alert('いいねするためにはログインしてください。'); + return; } console.error(xhr); @@ -98,4 +101,4 @@ $(() => { $this.siblings(".card-link").removeClass("card-spoiler"); $this.remove(); }); -}); \ No newline at end of file +});