Skip to content

Commit

Permalink
финалочка
Browse files Browse the repository at this point in the history
  • Loading branch information
VartoSss committed Dec 30, 2024
1 parent a83fbec commit 1ecd806
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/store/api-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ import {
setUserData,
updateUserFavorites,
} from './user-process/user-process.slice';
import { changeCityAction, updateFavoriteInfo } from './data-process/data-process.slice';
import {
changeCityAction,
updateFavoriteInfo,
} from './data-process/data-process.slice';

export const fetchOffersAction = createAsyncThunk<
Offer[],
Expand Down Expand Up @@ -177,6 +180,6 @@ export const logoutAction = createAsyncThunk<
dropToken();
dispatch(fetchOffersAction());
dispatch(setUserData(null));
dispatch(changeCityAction(CityData[CityName.Paris]))
dispatch(changeCityAction(CityData[CityName.Paris]));
dispatch(redirectToRoute(AppRoutes.Root));
});

0 comments on commit 1ecd806

Please sign in to comment.