Skip to content

Firefly III: a personal finances manager

Fix typo in foreign currency code.

James Cole76a8fe1aa406
diff --git a/resources/assets/v3/js/pages/transactions/edit.js b/resources/assets/v3/js/pages/transactions/edit.js
index 2c111c07c8..ab64588716 100644
--- a/resources/assets/v3/js/pages/transactions/edit.js
+++ b/resources/assets/v3/js/pages/transactions/edit.js
@@ -254,12 +254,9 @@ let transactions = function () {
// set amountCurrency.
for (let i in this.formData.enabledCurrencies) {
if (Object.hasOwn(this.formData.enabledCurrencies, i)) {
- if (
- this.formData.enabledCurrencies[i].code ===
- this.entries[0].currency_code
+ if (this.formData.enabledCurrencies[i].code === this.entries[0].currency_code
) {
- this.formData.amountCurrency =
- this.formData.enabledCurrencies[i];
+ this.formData.amountCurrency = this.formData.enabledCurrencies[i];
}
}
}
@@ -275,7 +272,7 @@ let transactions = function () {
) {
if (
this.formData.enabledCurrencies[i].code ===
- this.entries[0].forein_currency_code
+ this.entries[0].foreign_currency_code
) {
this.formData.foreignCurrencies.push(
this.formData.enabledCurrencies[i],