Skip to content

Commit

Permalink
Update user-provider.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaiDavid authored Jun 16, 2020
1 parent 19af614 commit 42e2d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/user-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function initialState(): IUserContext {

export default function UserProvider({ children }: UserProviderOptions): JSX.Element {
const { client, handlers } = useContext(Auth0Context);
const [state, setState] = useState<IUserContext>(initialState);
const [state, setState] = useState<IUserContext>(initialState());

useEffect(() => {
const executeCallback = async (): Promise<void> => {
Expand Down

0 comments on commit 42e2d54

Please sign in to comment.