We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2d107 commit d0ec592Copy full SHA for d0ec592
src/pages/home/HomePage.tsx
@@ -17,14 +17,18 @@ function PageBody() {
17
queryKey: ["identity-detail"],
18
queryFn: async () => {
19
const response = await identityDetail()
20
- return response.data
+ return response.data ?? null
21
},
22
staleTime: Infinity,
23
gcTime: Infinity,
24
})
25
26
if (!data) {
27
- return <>No identity found</>
+ return (
28
+ <div className="bg-card text-card-foreground rounded-lg border p-6">
29
+ <div className="text-center text-muted-foreground">No identity found</div>
30
+ </div>
31
+ )
32
}
33
34
return (
0 commit comments