Fix createHandleCloseReplace implementation
This commit is contained in:
parent
878bae6c2f
commit
b2e1a43f1b
@ -45,8 +45,7 @@ export const useModalSearchParams = () => {
|
||||
}
|
||||
|
||||
const createHandleCloseReplace =
|
||||
(modal: MODAL_PARAMS_KEYS, extraOptions?: IExtraCloseOptions) =>
|
||||
() => {
|
||||
(modal: MODAL_PARAMS_KEYS, extraOptions: IExtraCloseOptions = {}) => {
|
||||
return createHandleClose(modal, { ...extraOptions, replace: true })
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user