diff --git a/src/js/Purchase.js b/src/js/Purchase.js index 5fd892896fd563f09ae6cb4d84a6fc379459f57e..7a703288b40cda1786ad9ba022197ee62ac2c718 100644 --- a/src/js/Purchase.js +++ b/src/js/Purchase.js @@ -24,6 +24,8 @@ globalThis.Purchase = class Purchase { const button = App.UI.DOM.makeElement("button", capFirstChar(price), ['purchase-button']); if (V.purchaseStyle === 'button') { + const note = this.note.substring(0, 5) === ' and ' ? this.note.replace(' and ', '') : this.note; + button.onclick = () => { cashX(forceNeg(this.cost), this.what); @@ -34,7 +36,7 @@ globalThis.Purchase = class Purchase { if (this.note) { tippy(button, { - content: this.note, + content: capFirstChar(note), }); }