Skip to content

Commit c4eeb2f

Browse files
committed
up
1 parent 94045df commit c4eeb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/MapSearch/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,15 @@ export const MapPopup: React.FunctionComponent<MapPopupProps> = props => {
426426
let att = yr;
427427
let atv = 0;
428428
let url = new URL(window.location.href);
429-
let yrparam = url.searchParams.get('year');
430429
let yrstring: string | null | undefined = null;
431430
let cyr = 0;
432431

433432
//if (yrstring === null || yrstring === undefined) {
434433
yrstring = localStorage.getItem('currentYear');
434+
let yrparam = url.searchParams.get('year');
435435
//}
436436

437-
if (yrparam) {
437+
if (!yrstring) {
438438
yrstring = yrparam;
439439
}
440440

0 commit comments

Comments
 (0)