Merge pull request #2424 from Safelite/feature/CASH-203
CASH-203: Truncate full price
This commit is contained in:
commit
b8f9012e47
1 changed files with 4 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue