Skip to content

Commit

Permalink
Update src/core/providers/ApiProvider.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Cucinella <[email protected]>
  • Loading branch information
FabrizioCostaMedich and QcFe committed Jan 28, 2025
1 parent 769ff34 commit be42828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/ApiProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ApiProvider = ({ children }: PropsWithChildren) => {
async (error: unknown, client: QueryClient) => {
if (error instanceof ResponseError) {
if (error.response.status === 401) {
resetKeychain();
await resetKeychain();
setApiContext(c => ({
...c,
isLogged: false,
Expand Down

0 comments on commit be42828

Please sign in to comment.