visuddhinanda 2 роки тому
батько
коміт
bb0a124892
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      dashboard/src/reducers/course-user.ts

+ 3 - 2
dashboard/src/reducers/course-user.ts

@@ -1,6 +1,7 @@
 import { createSlice, PayloadAction } from "@reduxjs/toolkit";
 import { createSlice, PayloadAction } from "@reduxjs/toolkit";
 
 
 import type { RootState } from "../store";
 import type { RootState } from "../store";
+import { TCourseRole } from "../components/api/Course";
 
 
 export const ROLE_ROOT = "root";
 export const ROLE_ROOT = "root";
 export const ROLE_ASSISTANT = "assistant";
 export const ROLE_ASSISTANT = "assistant";
@@ -23,8 +24,8 @@ const remove = () => {
 };
 };
 
 
 export interface ICourseUser {
 export interface ICourseUser {
-  channelId: string;
-  role: string;
+  channelId?: string | null;
+  role: TCourseRole;
 }
 }
 
 
 interface IState {
 interface IState {