Skip to content

Commit 947ba2c

Browse files
authored
Merge pull request #812 from Real-Dev-Squad/develop
Dev to Main Sync
2 parents 376b826 + 4e03a4a commit 947ba2c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

task-requests/script.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,25 @@ async function getTaskRequests(query = {}, nextLink) {
6060

6161
if (res.status === 401) {
6262
showMessage('ERROR', ErrorMessages.UNAUTHENTICATED);
63-
return;
63+
return { data: [] };
6464
}
6565

6666
if (res.status === 403) {
6767
showMessage('ERROR', ErrorMessages.UNAUTHORIZED);
68-
return;
68+
return { data: [] };
6969
}
7070

7171
if (res.status === 404) {
7272
showMessage('ERROR', ErrorMessages.NOT_FOUND);
73-
return;
73+
return { data: [] };
7474
}
7575

7676
showMessage('ERROR', ErrorMessages.SERVER_ERROR);
77+
return { data: [] };
7778
} catch (e) {
7879
console.error(e);
80+
showMessage('ERROR', ErrorMessages.SERVER_ERROR);
81+
return { data: [] };
7982
}
8083
}
8184

task-requests/style.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,13 @@ body {
364364
gap: 1rem;
365365
}
366366
.taskRequest__message {
367-
line-height: 1.25rem;
367+
line-height: 1.2;
368368
font-weight: 600;
369369
text-align: center;
370370
font-size: 1.5rem;
371371
width: 100%;
372372
position: absolute;
373+
word-wrap: break-word;
373374
}
374375
.taskRequest__message--error {
375376
color: var(--color-error);
@@ -482,6 +483,10 @@ body {
482483
.funnel-icon {
483484
margin: auto;
484485
}
486+
487+
.taskRequest__message--error {
488+
position: static;
489+
}
485490
}
486491

487492
@media screen and (max-width: 320px) {

0 commit comments

Comments
 (0)