visuddhinanda 2 лет назад
Родитель
Сommit
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 type { RootState } from "../store";
+import { TCourseRole } from "../components/api/Course";
 
 export const ROLE_ROOT = "root";
 export const ROLE_ASSISTANT = "assistant";
@@ -23,8 +24,8 @@ const remove = () => {
 };
 
 export interface ICourseUser {
-  channelId: string;
-  role: string;
+  channelId?: string | null;
+  role: TCourseRole;
 }
 
 interface IState {