From c850c406821064d4d69420392b32853a41cdb91e Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 17 May 2023 09:57:53 -0300
Subject: version id

---
 packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx')

diff --git a/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx b/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx
index 4397fc197..d8877333c 100644
--- a/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx
+++ b/packages/exchange-backoffice-ui/src/handlers/FormProvider.tsx
@@ -51,7 +51,7 @@ export function FormProvider<T>({
   const value = useRef(initialValue ?? {});
   useEffect(() => {
     return function onUnload() {
-      value.current = {};
+      value.current = initialValue ?? {};
     };
   });
   return (
-- 
cgit v1.2.3

