diff --git a/package.json b/package.json index f038fd9..44f4bd7 100644 --- a/package.json +++ b/package.json @@ -59,8 +59,8 @@ "@babel/core": "7.16.0" }, "scripts": { - "start": "react-scripts --max_old_space_size=4096 start", - "build": "react-scripts --max_old_space_size=4096 build", + "start": "react-scripts --openssl-legacy-provider --max_old_space_size=4096 start", + "build": "react-scripts --openssl-legacy-provider --max_old_space_size=4096 build", "test": "react-scripts test", "eject": "react-scripts eject", "lint": "eslint src", diff --git a/src/_constants/config.js b/src/_constants/config.js index 107be33..6c0314b 100644 --- a/src/_constants/config.js +++ b/src/_constants/config.js @@ -1,4 +1,4 @@ -const enviroment = ".dev"; +const enviroment = ""; export const configConstants = { API_URL: "", diff --git a/src/_screens/home/teacher/index.js b/src/_screens/home/teacher/index.js index 9319e21..b528436 100644 --- a/src/_screens/home/teacher/index.js +++ b/src/_screens/home/teacher/index.js @@ -260,13 +260,13 @@ export default function TeacherHome() {
{"Tổng số lớp: "} - {totalClass} + {listClass?.length}
{"Tổng số lần giao: "} - {totalAssign} + {countAss(listClass)}