Skip to content
Snippets Groups Projects
Commit faae0430 authored by DCoded's avatar DCoded
Browse files

Minor note tweak

parent 1c1e3fc5
Branches
Tags
1 merge request!10497Purchase class
......@@ -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),
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment