Bladeren bron

extend the initial user data

Sven Czarnian 2 jaren geleden
bovenliggende
commit
f1f76aa6b9
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 1 0
      src/contexts/authcontext.tsx
  2. 1 0
      src/types/index.ts

+ 1 - 0
src/contexts/authcontext.tsx

@@ -8,6 +8,7 @@ const InitialAuthState: IAuthState = {
   user: {
     vatsimId: '',
     fullName: '',
+    radarScopeKey: '',
     administrator: false,
     airportConfigurationAccess: [],
   },

+ 1 - 0
src/types/index.ts

@@ -7,6 +7,7 @@ export interface AirportOverview {
 export interface User {
   vatsimId: string;
   fullName: string;
+  radarScopeKey: string;
   administrator: boolean;
   airportConfigurationAccess: string[];
 };