From 40e1439ff3900882e05ce160342b7338e4a13a22 Mon Sep 17 00:00:00 2001 From: jfrye122 Date: Mon, 22 May 2023 07:47:50 -0400 Subject: [PATCH] added missing setlodaing to false --- .../time-ticket/screen-time-ticket-clockoff.component.jsx | 3 ++- components/time-ticket/screen-time-ticket-create.component.jsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/time-ticket/screen-time-ticket-clockoff.component.jsx b/components/time-ticket/screen-time-ticket-clockoff.component.jsx index 74c57ff..66f37f6 100644 --- a/components/time-ticket/screen-time-ticket-clockoff.component.jsx +++ b/components/time-ticket/screen-time-ticket-clockoff.component.jsx @@ -63,6 +63,7 @@ export function TimeTicketClockOff({ ) { if (isNaN(values.actualhours)|isNaN(values.productivehours)) { console.log("actual hours is NAN!"); + setLoading(false); setError({ message: "Please make sure all fields have valid values." }); return; @@ -160,6 +161,7 @@ export function TimeTicketClockOff({ currentValue={currentSCC} onValueSelected={setCurrentSCC} /> + {error ? : null} - {error ? : null} )} diff --git a/components/time-ticket/screen-time-ticket-create.component.jsx b/components/time-ticket/screen-time-ticket-create.component.jsx index 1ee1953..411f429 100644 --- a/components/time-ticket/screen-time-ticket-create.component.jsx +++ b/components/time-ticket/screen-time-ticket-create.component.jsx @@ -91,6 +91,7 @@ export function TimeTicketCreate({ ) { if (isNaN(values.actualhours) | isNaN(values.productivehours)) { console.log("actual hours is NAN!"); + setLoading(false); setError({ message: "Please make sure all fields have valid values." }); return; } @@ -249,6 +250,7 @@ export function TimeTicketCreate({ value={values.actualhours} label={"Actual Hours"} /> + {error ? : null} - {error ? : null} )}