Browse Source

[edit] duration

wenliming 2 years ago
parent
commit
fe42738599
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/view/iframe/publish/give-dialog.vue

+ 2 - 2
src/view/iframe/publish/give-dialog.vue

@@ -1137,7 +1137,7 @@ const onValidityDurationInput = () => {
 
     if (val == 0) {
         val = "";
-    } else if(val > maxDuration) {
+    } else if(val > lotteryMaxHourDuration) {
         val = lotteryMaxHourDuration+'';
     }
     val = val.replace(/[^\d]/g, "");
@@ -1151,7 +1151,7 @@ const onValidityDurationBlur = () => {
     let val = baseFormData.validityDuration;
     if (val == 0) {
         val = "";
-    } else if(val > maxDuration) {
+    } else if(val > lotteryMaxHourDuration) {
         val = lotteryMaxHourDuration+'';
     }
     val = val.replace(/[^\d]/g, "");