diff --git a/client/utils/custom-hooks.js b/client/utils/custom-hooks.js index 1a0978d1..9b9e24e2 100644 --- a/client/utils/custom-hooks.js +++ b/client/utils/custom-hooks.js @@ -22,7 +22,7 @@ export const useModalBehavior = (hideOverlay) => { // Return values const setRef = (r) => { ref.current = r; }; const [visible, setVisible] = useState(true); - const trigger = () => setVisible(true); + const trigger = () => setVisible(!visible); const hide = () => setVisible(false);