Skip to content

Commit

Permalink
Fix: null error
Browse files Browse the repository at this point in the history
  • Loading branch information
cuconveniencestore authored and hookor committed May 30, 2024
1 parent 0e593f9 commit 92952f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/support/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const FAQ = () => {
queryKey: ['FAQList'],
queryFn: async () => {
const data = await getSupportList(type);
return data.data;
return data ? data.data : [];
}
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/support/Notice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Notice = () => {
queryKey: ['noticesList', 'notice'],
queryFn: async () => {
const data = await getSupportList(type);
return data.data;
return data ? data.data : [];
}
});

Expand Down

0 comments on commit 92952f9

Please sign in to comment.