mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 21:35:04 +03:00
form validity fix
total of 10 tags are allowed but publish button was being disabled at 9 because of wrong comparison
This commit is contained in:
parent
bdbe15aef5
commit
64f364b605
@ -199,7 +199,7 @@ class EditorScreen extends Component {
|
||||
get(fields, 'title', '').length < 255 &&
|
||||
(get(fields, 'body', '') || (bodyText && bodyText > 0)) &&
|
||||
get(fields, 'tags', null) &&
|
||||
get(fields, 'tags', null).length < 10 &&
|
||||
get(fields, 'tags', null).length <= 10 &&
|
||||
isLoggedIn;
|
||||
}
|
||||
this.setState({ isFormValid });
|
||||
|
Loading…
Reference in New Issue
Block a user