From a4947339dcff69ae6dde73242cd23cdaf1afdf84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 26 Jul 2022 09:39:33 +0200 Subject: [PATCH] Set amount in Contribution form all over the place as '' and not '0' --- frontend/src/components/Contributions/ContributionForm.vue | 2 +- frontend/src/pages/Community.spec.js | 2 +- frontend/src/pages/Community.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Contributions/ContributionForm.vue b/frontend/src/components/Contributions/ContributionForm.vue index 72576ece8..6bd18d784 100644 --- a/frontend/src/components/Contributions/ContributionForm.vue +++ b/frontend/src/components/Contributions/ContributionForm.vue @@ -111,7 +111,7 @@ export default { this.form.date = '' this.id = null this.form.memo = '' - this.form.amount = '0' + this.form.amount = '' }, }, computed: { diff --git a/frontend/src/pages/Community.spec.js b/frontend/src/pages/Community.spec.js index bce29452c..05dbb3bdc 100644 --- a/frontend/src/pages/Community.spec.js +++ b/frontend/src/pages/Community.spec.js @@ -195,7 +195,7 @@ describe('Community', () => { expect(wrapper.vm.form.id).toBe(null) expect(wrapper.vm.form.date).toBe('') expect(wrapper.vm.form.memo).toBe('') - expect(wrapper.vm.form.amount).toBe('0') + expect(wrapper.vm.form.amount).toBe('') }) }) diff --git a/frontend/src/pages/Community.vue b/frontend/src/pages/Community.vue index e85f708c3..64aca6156 100644 --- a/frontend/src/pages/Community.vue +++ b/frontend/src/pages/Community.vue @@ -103,7 +103,7 @@ export default { id: null, date: '', memo: '', - amount: '0', + amount: '', }, updateAmount: '', }