From 20b35e0f3d39285435a9adabfa4a74c05a71accb Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 16 Jun 2022 07:55:18 +0200 Subject: [PATCH] fix: Max Amount on Slider for Edit Contribution --- admin/src/components/EditCreationFormular.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/src/components/EditCreationFormular.vue b/admin/src/components/EditCreationFormular.vue index 0c5bb5a6a..0e887ad3d 100644 --- a/admin/src/components/EditCreationFormular.vue +++ b/admin/src/components/EditCreationFormular.vue @@ -103,7 +103,7 @@ export default { data() { return { text: !this.creationUserData.memo ? '' : this.creationUserData.memo, - value: !this.creationUserData.amount ? 0 : this.creationUserData.amount, + value: !this.creationUserData.amount ? 0 : Number(this.creationUserData.amount), rangeMin: 0, rangeMax: 1000, selected: '', @@ -155,7 +155,7 @@ export default { const month = this.$d(new Date(this.creationUserData.date), 'month') const index = this.radioOptions.findIndex((obj) => obj.item.short === month) this.selected = this.radioOptions[index].item - this.rangeMax = this.creation[index] + this.creationUserData.amount + this.rangeMax = Number(this.creation[index]) + Number(this.creationUserData.amount) } }, }