Преглед на файлове

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

sw преди 1 месец
родител
ревизия
f57e1da956
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
         }