fix: handle undefined starPrompt state in Redux
This commit is contained in:
1 parent
732f04a8b4
commit
c185979479
1 file changed
+3
@@ -59,6 +59,9 @@ const uiSlice = createSlice({
|
||||
state.language = action.payload;
|
||||
},
|
||||
setStarPromptClosed(state, action) {
|
||||
if (!state.starPrompt) {
|
||||
state.starPrompt = {};
|
||||
}
|
||||
state.starPrompt.closed = action.payload;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user