0
0
Fork 0

Change how the status check is working

This commit is contained in:
Oliver-Akins 2021-01-10 15:42:14 -07:00
parent 0f74a60cb3
commit bd70fa5f99

View file

@ -114,7 +114,7 @@ export default {
* },
*/
console.log(data)
if (!(200 <= data.status && data.status < 300)) {
if (data.status < 200 || 300 <= data.status) {
this.$emit(`error`, data);
return;
};