Skip to content

Commit

Permalink
Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
KuhaiAnna committed Sep 10, 2023
1 parent d8511ed commit 9c01ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/WeatherForecast/WeatherForecast.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import css from './WeatherForecast.module.css';
export const WeatherForecast = () => {
const { city, startDate, endDate } = useParams();
const location = useLocation();
const backLinLocationRef = useRef(location.state?.from ?? '/');
const backLinkLocationRef = useRef(location.state?.from ?? '/');

const dispatch = useDispatch();
const weeklyWeatherIsLoading = useSelector(selectWeeklyWeatherIsLoading);
Expand Down Expand Up @@ -59,7 +59,7 @@ export const WeatherForecast = () => {
{id && (
<div className={css.sidebarWrapper}>
<BackLink
to={backLinLocationRef.current}
to={backLinkLocationRef.current}
onClick={onButtonCloseClick}
/>
{weatherTodayIsLoading && !weatherTodayError && <Loader />}
Expand Down

0 comments on commit 9c01ac3

Please sign in to comment.