Fix createHandleCloseReplace implementation

This commit is contained in:
artur 2024-02-02 13:39:56 +03:00
parent 878bae6c2f
commit b2e1a43f1b

View File

@ -45,8 +45,7 @@ export const useModalSearchParams = () => {
} }
const createHandleCloseReplace = const createHandleCloseReplace =
(modal: MODAL_PARAMS_KEYS, extraOptions?: IExtraCloseOptions) => (modal: MODAL_PARAMS_KEYS, extraOptions: IExtraCloseOptions = {}) => {
() => {
return createHandleClose(modal, { ...extraOptions, replace: true }) return createHandleClose(modal, { ...extraOptions, replace: true })
} }