Skip to content

Commit

Permalink
yoseph stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyHubert committed Aug 9, 2024
1 parent 4be41d6 commit ca29994
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions yoseph/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const historyRender = () => {
${info.account}
</div>
<div class="amount">
${info.amount}$
${info.amount.toFixed(2)}$
</div>
<div class="description">
${info.description}
Expand Down Expand Up @@ -107,10 +107,9 @@ const calculations = () => {
Tithes = Tithes - tithesAmount
}
})
document.querySelector(`#stupid-total`).innerHTML = Stupid
document.querySelector(`#tithe-total`).innerHTML = Tithes
document.querySelector(`#savings-total`).innerHTML = Savings
console.log('stupid', Stupid, 'savings', Savings, 'tithes', Tithes)
document.querySelector(`#stupid-total`).innerHTML = Stupid.toFixed(2)
document.querySelector(`#tithe-total`).innerHTML = Tithes.toFixed(2)
document.querySelector(`#savings-total`).innerHTML = Savings.toFixed(2)
}
calculations()

Expand All @@ -137,7 +136,7 @@ document.querySelector(`#pay-enter`).addEventListener(`click`, () => {
const History = getLocalStorage('History', [])
const paydayHistoryItem = {
description: 'payday',
amount: amount,
amount: Number(amount),
date: Date.now(),
account: "payday"
}
Expand Down

0 comments on commit ca29994

Please sign in to comment.