Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Jan 31, 2023
1 parent d411d2b commit 02c09a6
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/common/helpers/provider/modules/session/session.ts
Expand Up @@ -24,15 +24,18 @@ export const useSession = function (masa, walletAddress) {
}
}, [masa]);

const logout = useCallback(async (callback) => {
const logged = await masa.session.logout();
if (logged) {
queryClient.invalidateQueries(`session-${walletAddress}`);
}
if(callback) {
callback()
}
}, [masa]);
const logout = useCallback(
async (callback) => {
const logged = await masa.session.logout();
if (logged) {
queryClient.invalidateQueries(`session-${walletAddress}`);
}
if (callback) {
callback();
}
},
[masa]
);

return { session: data, login, logout, status, isLoading, error };
};

0 comments on commit 02c09a6

Please sign in to comment.