Skip to content

Commit

Permalink
fix: use correct parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrehagen committed May 8, 2023
1 parent 34feca4 commit 54eaf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AccountProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;
export const AccountContext = createContext();

export const AccountProvider = ({ config, children }) => {
const account = useMemo(() => isBrowser && initIdentity(rest), []);
const account = useMemo(() => isBrowser && initIdentity(config), []);
const [access, setAccess] = useState(null);
const [isLoggedIn, setIsLoggedIn] = useState(null);
const [user, setUser] = useState(null);
Expand Down

0 comments on commit 54eaf2a

Please sign in to comment.