From 55a1e8c6e1ab34702525aadf18b1acce2d06e616 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 10 May 2023 15:01:56 -0300
Subject: fix form

---
 packages/exchange-backoffice-ui/src/forms/InputDate.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'packages/exchange-backoffice-ui/src/forms/InputDate.tsx')

diff --git a/packages/exchange-backoffice-ui/src/forms/InputDate.tsx b/packages/exchange-backoffice-ui/src/forms/InputDate.tsx
index c9e1421f8..00dd59996 100644
--- a/packages/exchange-backoffice-ui/src/forms/InputDate.tsx
+++ b/packages/exchange-backoffice-ui/src/forms/InputDate.tsx
@@ -18,12 +18,11 @@ export function InputDate(
       converter={{
         fromStringUI: (v) => {
           if (!v) return { t_ms: "never" };
-          console.log("from", v);
           const t_ms = parse(v, pattern, Date.now()).getTime();
           return { t_ms };
         },
         toStringUI: (v) => {
-          return v === undefined
+          return !v || !v.t_ms
             ? ""
             : v.t_ms === "never"
             ? "never"
-- 
cgit v1.2.3

