Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jalajcodes committed Oct 20, 2020
1 parent 3d0b23a commit 19ffdec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sections/Host/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -54,7 +54,7 @@ export const Host = () => {
postalCode: e.result.postalCode,
});
});
}, []);
}, [form]);

// if the mutation is successfull, redirect the user
if (data && data.hostListing) {
Expand Down

0 comments on commit 19ffdec

Please sign in to comment.