From 64f364b605786d24034d0b31f9cab29a5a11c7b1 Mon Sep 17 00:00:00 2001 From: noumantahir Date: Sun, 3 Oct 2021 12:01:13 +0500 Subject: [PATCH] form validity fix total of 10 tags are allowed but publish button was being disabled at 9 because of wrong comparison --- src/screens/editor/screen/editorScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/editor/screen/editorScreen.js b/src/screens/editor/screen/editorScreen.js index c40b8f91a..93fc515e0 100644 --- a/src/screens/editor/screen/editorScreen.js +++ b/src/screens/editor/screen/editorScreen.js @@ -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 });