Procházet zdrojové kódy

extend the initial user data

Sven Czarnian před 2 roky
rodič
revize
f1f76aa6b9
2 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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[];
 };