CASH-203: Truncate full price

This commit is contained in:
Chris Redelinghuys 2025-04-15 11:38:16 -04:00
parent 93e3eb4ceb
commit 671d16da37

View file

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