diff --git a/frontend/src/components/Contributions/ContributionForm.vue b/frontend/src/components/Contributions/ContributionForm.vue
index 08bfa635e..079a0f02b 100644
--- a/frontend/src/components/Contributions/ContributionForm.vue
+++ b/frontend/src/components/Contributions/ContributionForm.vue
@@ -55,22 +55,16 @@
>
- {{
- isThisMonth && form.amount > maxGddThisMonth
- ? $t('contribution.formText.maxGDDforMonth', { amount: maxGddThisMonth })
- : ''
- }}
- {{
- !isThisMonth && form.amount > maxGddLastMonth
- ? $t('contribution.formText.maxGDDforMonth', { amount: maxGddLastMonth })
- : ''
- }}
+ {{ $t('contribution.formText.maxGDDforMonth', { amount: maxGddThisMonth }) }}
+
+
+ {{ $t('contribution.formText.maxGDDforMonth', { amount: maxGddLastMonth }) }}
@@ -122,7 +116,6 @@ export default {
},
computed: {
/*
- * lastMonth() = The date set back by one month.
* minimalDate() = The date is reset by one month to the 1st of the previous month.
*
*/
@@ -134,8 +127,8 @@ export default {
this.form.memo.length < this.minlength ||
this.form.amount <= 0 ||
this.form.amount > 1000 ||
- (this.isThisMonth && this.form.amount > this.maxGddThisMonth) ||
- (!this.isThisMonth && this.form.amount > this.maxGddlastMonth)
+ (this.isThisMonth && parseInt(this.form.amount) > parseInt(this.maxGddThisMonth)) ||
+ (!this.isThisMonth && parseInt(this.form.amount) > parseInt(this.maxGddlastMonth))
)
return true
return false