useApi fix

master
Tudor Stanciu 2022-01-18 14:26:36 +02:00
parent c7576a08c2
commit c4ae08f558
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ const useApi = () => {
const handleError = err => { const handleError = err => {
let message; let message;
switch (err.response.status) { switch (err.response?.status) {
case 500: case 500:
message = err.response.statusText; message = err.response.statusText;
break; break;