Skip to content

Commit 47b21fc

Browse files
committed
add geography query param support
1 parent ac184c0 commit 47b21fc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

components/queries.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ export const QueryProvider = ({ children }) => {
5353
}
5454
}, [router.query.project_id, router.query.beneficiary, router.pathname])
5555

56+
useEffect(() => {
57+
const { geography } = router.query
58+
if (geography === 'true') {
59+
setHasGeography(true)
60+
} else if (geography === 'false') {
61+
setHasGeography(false)
62+
}
63+
}, [])
64+
5665
return (
5766
<QueryContext.Provider
5867
value={{

0 commit comments

Comments
 (0)