Skip to content
Snippets Groups Projects
Commit 58a03b1f authored by Hangzhi Yu's avatar Hangzhi Yu Committed by magicfelix
Browse files

Remove unused rules

parent 1545fa77
No related branches found
No related tags found
2 merge requests!1788Draft: Resolve "Refactor account registration form (and generalize parts of it)",!1737Draft: Resolve "Rebuild account registration form"
...@@ -668,10 +668,6 @@ export default { ...@@ -668,10 +668,6 @@ export default {
computed: { computed: {
rules() { rules() {
return { return {
name: [
(v) => !!v || this.$t("order.rules.name.required"),
(v) => v.length <= 255 || this.$t("order.rules.name.max"),
],
email: [ email: [
(v) => (v) =>
/.+@.+\..+/.test(v) || /.+@.+\..+/.test(v) ||
...@@ -703,15 +699,6 @@ export default { ...@@ -703,15 +699,6 @@ export default {
"accounts.signup.form.rules.confirm_password.no_match", "accounts.signup.form.rules.confirm_password.no_match",
), ),
], ],
amount: [
(v) =>
v >= this.event.minCost ||
this.$t("accounts.signup.form.rules.amount.too_low"),
(v) =>
this.event.maxCost === null ||
v <= this.event.maxCost ||
this.$t("accounts.signup.form.rules.amount.too_high"),
],
}; };
}, },
dataForSubmit() { dataForSubmit() {
......
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