fix: handle undefined starPrompt state in Redux

This commit is contained in:
mohadeseh safari committed 2025-03-07 15:46:13 -05:00
1 parent 732f04a8b4
commit c185979479
1 file changed
+3
+3
View File
@@ -59,6 +59,9 @@ const uiSlice = createSlice({
state.language = action.payload;
},
setStarPromptClosed(state, action) {
if (!state.starPrompt) {
state.starPrompt = {};
}
state.starPrompt.closed = action.payload;
},
},