From 35499c3e3a72799b8a3d863c6588988f9ddeabc1 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 15 Mar 2024 09:26:20 -0500 Subject: [PATCH] optional param --- web/src/hooks/use-overlay-state.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/use-overlay-state.tsx b/web/src/hooks/use-overlay-state.tsx index 12f87be57..7ae5bdc18 100644 --- a/web/src/hooks/use-overlay-state.tsx +++ b/web/src/hooks/use-overlay-state.tsx @@ -42,7 +42,7 @@ export function usePersistedOverlayState( const currentLocationState = location.state; const setOverlayStateValue = useCallback( - (value: S | undefined, replace: boolean = false) => { + (value: S | undefined, replace?: boolean) => { setPersistedValue(value); const newLocationState = { ...currentLocationState }; newLocationState[key] = value;