From 54bf00e22c967d25cd586b4822e5e9bd07ef59ac Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Fri, 19 May 2023 19:42:02 +1000 Subject: [PATCH] Removed unnecessary action --- src/features/InfoDialog/infoDialogSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/InfoDialog/infoDialogSlice.ts b/src/features/InfoDialog/infoDialogSlice.ts index 0eef801..9eee2be 100644 --- a/src/features/InfoDialog/infoDialogSlice.ts +++ b/src/features/InfoDialog/infoDialogSlice.ts @@ -186,7 +186,7 @@ export const infoDialogSlice: Slice = createSlice({ setIsOpen: (state, action: PayloadAction) => { state.isOpen = action.payload; }, - setCloseDialog: (state, action: PayloadAction) => { + setCloseDialog: state => { state.isOpen = false; }, },