From 978c56b16bf045dad91e21a9e69e56b592bd4ad5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 23 Feb 2021 06:28:12 +0100 Subject: [PATCH] Better event. --- frontend/src/components/transactions/Create.vue | 2 +- .../src/components/transactions/TransactionForeignAmount.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/transactions/Create.vue b/frontend/src/components/transactions/Create.vue index 1fae2d4238..3d6c5e18ed 100644 --- a/frontend/src/components/transactions/Create.vue +++ b/frontend/src/components/transactions/Create.vue @@ -39,7 +39,7 @@ v-on:switch-accounts="switchAccounts($event)" v-on:set-amount="storeAmount(index, $event)" v-on:set-foreign-currency-id="storeField($event)" - v-on:set-foreign-amount="storeForeignAmount(index, $event)" + v-on:set-foreign-amount="storeField($event)" v-on:set-date="storeDate($event)" v-on:set-time="storeTime($event)" v-on:set-custom-date="storeCustomDate(index, $event)" diff --git a/frontend/src/components/transactions/TransactionForeignAmount.vue b/frontend/src/components/transactions/TransactionForeignAmount.vue index f20c6f014c..6b9ba20a93 100644 --- a/frontend/src/components/transactions/TransactionForeignAmount.vue +++ b/frontend/src/components/transactions/TransactionForeignAmount.vue @@ -59,7 +59,7 @@ export default { }, watch: { amount: function(value) { - this.$emit('set-foreign-amount', value); + this.$emit('set-foreign-amount', {field: 'foreign_amount', index: this.index, value: value}); } }, computed: {