Skip to content

Commit b4000de

Browse files
committed
Check if data not null
1 parent 55cff27 commit b4000de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/home/HomePage.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function PageBody() {
2323
gcTime: Infinity,
2424
})
2525

26+
if (!data) {
27+
return <></>
28+
}
29+
2630
return (
2731
<>
2832
<div className="flex flex-col gap-2 bg-accent text-accent-foreground rounded-lg p-4 my-2">

0 commit comments

Comments
 (0)