Merge pull request #2424 from Safelite/feature/CASH-203

CASH-203: Truncate full price
This commit is contained in:
Chris 2025-04-15 12:01:42 -04:00 committed by GitHub
commit b8f9012e47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,7 +78,7 @@
<span>in 4 interest-free payments</span> <span>in 4 interest-free payments</span>
<div> <div>
or or
<span v-html="this.buttonAuxillaryCopy"></span> <span v-html="truncatedSinglePayment()"></span>
<span <span
class="strikethrough-price" class="strikethrough-price"
v-if="shouldDisplayStrikeThroughPrice" v-if="shouldDisplayStrikeThroughPrice"
@ -141,6 +141,9 @@ export default {
const decimalPrice = parseFloat(this.buttonAuxillaryCopy.replace("$", "")); const decimalPrice = parseFloat(this.buttonAuxillaryCopy.replace("$", ""));
return "$" + (decimalPrice / 4).toFixed(2); return "$" + (decimalPrice / 4).toFixed(2);
}, },
truncatedSinglePayment() {
return "$" + Math.trunc(this.buttonAuxillaryCopy.replace("$", ""));
},
}, },
}; };
</script> </script>