nicolium: fix for hot reload in dev?
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -28,7 +28,7 @@ const DefaultCurrentAccountProvider: React.FC<ICurrentAccountProvider> = ({ chil
|
||||
return <CurrentAccountContext.Provider value={value}>{children}</CurrentAccountContext.Provider>;
|
||||
};
|
||||
|
||||
const useCurrentAccount = () => useContext(CurrentAccountContext).me;
|
||||
const useCurrentAccount = () => useContext(CurrentAccountContext)?.me | null;
|
||||
|
||||
const useCurrentAccountContext = () => useContext(CurrentAccountContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user