We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94045df commit c4eeb2fCopy full SHA for c4eeb2f
src/app/components/MapSearch/index.tsx
@@ -426,15 +426,15 @@ export const MapPopup: React.FunctionComponent<MapPopupProps> = props => {
426
let att = yr;
427
let atv = 0;
428
let url = new URL(window.location.href);
429
- let yrparam = url.searchParams.get('year');
430
let yrstring: string | null | undefined = null;
431
let cyr = 0;
432
433
//if (yrstring === null || yrstring === undefined) {
434
yrstring = localStorage.getItem('currentYear');
+ let yrparam = url.searchParams.get('year');
435
//}
436
437
- if (yrparam) {
+ if (!yrstring) {
438
yrstring = yrparam;
439
}
440
0 commit comments