Skip to content

Commit

Permalink
fix: update demo to use strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed Jul 19, 2022
1 parent 59520a2 commit 5898a4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/examples/pages/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function SignIn() {

const { isLoading: invitesLoading, data: invites = [] } = useQuery(
'invites',
() => nile.organizations.listInvites({ org: Number(orgId) }),
() => nile.organizations.listInvites({ org: String(orgId) }),
{ enabled: !!orgId }
);

Expand All @@ -46,8 +46,8 @@ function SignIn() {

const submitInvite = useCallback(async () => {
await nile.organizations.acceptInvite({
code: Number(joinCode),
org: Number(orgId),
code: joinCode,
org: String(orgId),
});
}, [joinCode, nile, orgId]);

Expand Down

1 comment on commit 5898a4c

@vercel
Copy link

@vercel vercel bot commented on 5898a4c Jul 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nile-js – ./

nile-js.vercel.app
nile-js-theniledev.vercel.app
nile-js-git-master-theniledev.vercel.app

Please sign in to comment.