CEC-4450 debug mask (#343)

* CEC-4450 Enable debug mask using REACT_APP_ENABLE_DEBUG

* rename
This commit is contained in:
John Wu
2023-06-05 17:08:05 -07:00
committed by GitHub
parent 82d722d8f5
commit 28f968efc7
8 changed files with 15 additions and 11 deletions

View File

@@ -35,8 +35,7 @@ const MainForm = ({ vin }) => {
providers,
} = useUserContext();
const ENV = process.env.REACT_APP_ENV;
const showDebugMask = (ENV === 'local' || ENV === 'dev' || ENV === 'stg' || ENV === 'prd')
const showDebugMask = (process.env.REACT_APP_ENABLE_DEBUGMASK === "1");
useEffect(() => {
(async () => {