Skip to content

Commit

Permalink
fixed user list fetch all
Browse files Browse the repository at this point in the history
  • Loading branch information
fomalhautb committed Nov 30, 2024
1 parent da3dbd9 commit 3b786ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useAdminApp } from "../use-admin-app";
export default function PageClient() {
const stackAdminApp = useAdminApp();
const project = stackAdminApp.useProject();
const users = stackAdminApp.useUsers();
const firstUser = stackAdminApp.useUsers({ limit: 1 });

return (
<PageLayout
Expand All @@ -22,7 +22,7 @@ export default function PageClient() {
trigger={<Button>Create User</Button>}
/>}
>
{users.length > 0 ? null : (
{firstUser.length > 0 ? null : (
<Alert variant='success'>
Congratulations on starting your project! Check the <StyledLink href="https://docs.stack-auth.com">documentation</StyledLink> to add your first users.
</Alert>
Expand Down

0 comments on commit 3b786ea

Please sign in to comment.