From b89896052c41aef1df7c7b1efcf970a98880f28c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 5 Oct 2024 23:56:53 -0600 Subject: [PATCH] Update DirectMessage.vue component --- resources/assets/components/DirectMessage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/components/DirectMessage.vue b/resources/assets/components/DirectMessage.vue index e91ecdfaf..4766e5df1 100644 --- a/resources/assets/components/DirectMessage.vue +++ b/resources/assets/components/DirectMessage.vue @@ -456,7 +456,9 @@ // objDiv.scrollTop = objDiv.scrollHeight; // }, 300); }).catch(err => { - if(err.response.status == 403) { + if(err.response.status == 400) { + swal('Error', err.response.data.error, 'error'); + } else if(err.response.status == 403) { self.blocked = true; swal('Profile Unavailable', 'You cannot message this profile at this time.', 'error'); }