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}
)}