aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/components/pages/ConfigurationPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/pages/ConfigurationPage.js b/frontend/src/components/pages/ConfigurationPage.js
index c8646fb..7119db7 100644
--- a/frontend/src/components/pages/ConfigurationPage.js
+++ b/frontend/src/components/pages/ConfigurationPage.js
@@ -64,8 +64,8 @@ class ConfigurationPage extends Component {
this.setState({serverAddressError: "invalid ip_address"});
valid = false;
}
- if (settings.config["flag_regex"].length < 8) {
- this.setState({flagRegexError: "flag_regex.length < 8"});
+ if (settings.config["flag_regex"].length == 0) {
+ this.setState({flagRegexError: "flag_regex cannot be empty"});
valid = false;
}