Fix wrong BTC sum when adding multiple line items

closes #220
This commit is contained in:
2024-03-20 17:24:37 +01:00
parent f5f74ae27f
commit 7afc75dbff
3 changed files with 37 additions and 4 deletions
@@ -74,7 +74,7 @@ export default class AddReimbursementComponent extends Component {
}
updateTotalAmountFromFiat() {
let btcAmount = parseFloat(this.total);
let btcAmount = 0;
if (this.exchangeRates.btceur > 0 && this.totalEUR > 0) {
btcAmount += (this.totalEUR / this.exchangeRates.btceur);