Skip to content

Commit 2159834

Browse files
authored
Fix useFlowCurrentUser arg type (#2612)
1 parent 4be1b36 commit 2159834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-sdk/src/hooks/useFlowCurrentUser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ interface UseFlowCurrentUserResult {
1212
unauthenticate: () => void
1313
}
1414

15-
export function useFlowCurrentUser(
16-
flowClient?: ReturnType<typeof useFlowClient>
17-
): UseFlowCurrentUserResult {
15+
export function useFlowCurrentUser({
16+
flowClient,
17+
}: UseFlowCurrentUserArgs = {}): UseFlowCurrentUserResult {
1818
const [user, setUser] = useState<CurrentUser | null>(null)
1919
const fcl = useFlowClient({flowClient})
2020

0 commit comments

Comments
 (0)