Skip to content

Commit

Permalink
Coalesce upstream token
Browse files Browse the repository at this point in the history
  • Loading branch information
liguori committed Aug 12, 2024
1 parent 2b448e4 commit 20c82ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Organizer.SPA/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ export class HomeComponent implements OnInit {
}

changeUpstreamEventToken(value) {
this.upstreamEventToken = value;
this.upstreamEventToken = value ?? '';
this.persistUiFilterInLocalStorage();
this.router.navigate(['calendar/', this.selectedYear]);
}

initializeUiFilterFromLocalStorage() {
this.upstreamEventToken = localStorage.getItem('UpstreamEventToken');
this.upstreamEventToken = localStorage.getItem('UpstreamEventToken') ?? '';
if (localStorage.getItem('SelectedCalendar')) {
this.selectedCalendar = localStorage.getItem('SelectedCalendar');
}
Expand Down

0 comments on commit 20c82ed

Please sign in to comment.