Explorar o código

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

sw hai 1 mes
pai
achega
f57e1da956
Modificáronse 1 ficheiros con 1 adicións e 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;
         }