Skip to content

Commit

Permalink
Fix current user check not working
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Sep 26, 2024
1 parent a5419a7 commit 6604fdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RP1AnalyticsWebApp/src/components/Careerlog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { fetchCareerLog, fetchContractsForCareer, fetchProgramsForCareer } from '../utils/api';
import { currentUser } from '../utils/currentUser';
import currentUser from '../utils/currentUser';
import { activeFilters } from '../utils/activeFilters';
import type { CareerLog, BaseContractEvent, ExtendedCareerLogMeta, ProgramItem } from 'types';
import CareerSelect from './CareerSelect.vue';
Expand Down
3 changes: 2 additions & 1 deletion RP1AnalyticsWebApp/src/utils/currentUser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CurrentUser } from 'types';

// Instantiated in _Layout.cshtml. Can be null.
export const currentUser = (<any>window) as CurrentUser | null;
declare const currentUser: CurrentUser | null;
export default currentUser;

0 comments on commit 6604fdc

Please sign in to comment.