浏览代码

Update DirectMessage.vue component

Daniel Supernault 9 月之前
父节点
当前提交
b89896052c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      resources/assets/components/DirectMessage.vue

+ 3 - 1
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');
 					}