Skip to content
Snippets Groups Projects
Commit a757c606 authored by magicfelix's avatar magicfelix
Browse files

Fix maxCost validation

parent cf8fea3c
No related branches found
No related tags found
1 merge request!78Resolve "Rewrite registration wizard"
...@@ -722,7 +722,7 @@ import SecondaryActionButton from "aleksis.core/components/generic/buttons/Secon ...@@ -722,7 +722,7 @@ import SecondaryActionButton from "aleksis.core/components/generic/buttons/Secon
], ],
amount: [ amount: [
(v) => v > this.event.minCost || this.$t("paweljong.event_registration.form.rules.amount.too_low"), (v) => v > this.event.minCost || this.$t("paweljong.event_registration.form.rules.amount.too_low"),
(v) => v < this.event.maxCost || this.$t("paweljong.event_registration.form.rules.amount.too_high"), (v) => this.event.maxCost === null || v < this.event.maxCost || this.$t("paweljong.event_registration.form.rules.amount.too_high"),
], ],
}; };
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment