From f52be84522da7f8e1c2b19d3484250e275252799 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 May 2022 17:13:33 -0700 Subject: Implement model validation --- modern/src/GeofencePage.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modern/src/GeofencePage.js') diff --git a/modern/src/GeofencePage.js b/modern/src/GeofencePage.js index d421a8e1..89762b60 100644 --- a/modern/src/GeofencePage.js +++ b/modern/src/GeofencePage.js @@ -24,10 +24,11 @@ const GeofencePage = () => { const [item, setItem] = useState(); + const validate = () => item && item.name; + return ( - - {item - && ( + + {item && ( <> }> @@ -60,7 +61,7 @@ const GeofencePage = () => { - )} + )} ); }; -- cgit v1.2.3