From 19ffdec7e22dc818d8a35e2fad8aa09ff1f1522a Mon Sep 17 00:00:00 2001 From: codewithjalaj Date: Tue, 20 Oct 2020 20:30:30 +0530 Subject: [PATCH] testing --- src/sections/Host/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sections/Host/index.tsx b/src/sections/Host/index.tsx index 121d080..e37e79b 100644 --- a/src/sections/Host/index.tsx +++ b/src/sections/Host/index.tsx @@ -45,7 +45,7 @@ export const Host = () => { useEffect(() => { const place = window.placeSearch({ key: process.env.REACT_APP_M_KEY, - container: document.querySelector('#placeSearch'), + container: addressRef.current, }); place.on('change', (e: any) => { form.setFieldsValue({ @@ -54,7 +54,7 @@ export const Host = () => { postalCode: e.result.postalCode, }); }); - }, []); + }, [form]); // if the mutation is successfull, redirect the user if (data && data.hostListing) {