From fc8c8f2858e220d4abec3c0542cbc591c7ea433b Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sat, 2 Sep 2023 02:05:59 +0300 Subject: [PATCH] Add 403 code to doors redirect --- src/pages/Doors.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Doors.jsx b/src/pages/Doors.jsx index 3fe36ff..d42fbcf 100644 --- a/src/pages/Doors.jsx +++ b/src/pages/Doors.jsx @@ -78,7 +78,7 @@ const Doors = () => { } } - {isError && (error.status === 401 ? : )} + {isError && ([401, 403].includes(error.status) ? : )} ); };