logic changes for zero deductible

This commit is contained in:
Katie Kroell 2024-10-30 09:47:35 -04:00
parent 4ad6b3e1b6
commit cb2d0f993c

View file

@ -464,18 +464,18 @@ export default {
return isRepair;
case 'deductibleOverZero':
return (
this.isDeductibleVisible && this.deductibleValue !== 0
); // TODO what if deductible is negative?
this.isDeductibleVisible && this.deductibleValue > 0
);
case 'isDeductibleZero':
return (
this.isDeductibleVisible && this.deductibleValue === 0
this.isDeductibleVisible && this.deductibleValue <= 0
);
case 'verifiedRepair':
return isRepair && this.isDeductibleVisible;
case 'verifiedReplaceZeroDeductible':
return !isRepair && this.isDeductibleVisible && this.deductibleValue === 0;
return !isRepair && this.isDeductibleVisible && this.deductibleValue <= 0;
case 'verifiedReplaceDeductibleOverZero':
return !isRepair && this.isDeductibleVisible && this.deductibleValue !== 0;
return !isRepair && this.isDeductibleVisible && this.deductibleValue > 0;
default:
return null;
}