Explorar el Código

fix(exam): resolve logic bug where examination access should be allowed when quota is greater than 0

sw hace 1 mes
padre
commit
f57e1da956
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/states/businessFlowMiddlewareLogic.ts

+ 1 - 1
src/states/businessFlowMiddlewareLogic.ts

@@ -29,7 +29,7 @@ const businessFlowMiddlewareLogic: Middleware =
       //进入检查前判断配额
       try {
         const quotaResponse = await getQuota();
-        if (quotaResponse.data.available >= quotaResponse.data.total) {
+        if (quotaResponse.data.available <= 0) {
           store.dispatch(showQuotaAlert());
           return;
         }