websockets working!

This commit is contained in:
Luke Berndt
2023-01-15 09:40:20 -05:00
parent ba15de8d30
commit be002d3c84
3 changed files with 30 additions and 40 deletions

View File

@@ -202,8 +202,8 @@ export const callsSlice = createSlice({
initialState,
reducers: {
addCall: (call) => {
state.data = callsAdapter.addOne(state.data, call)
addCall: (state, action) => {
state.data = callsAdapter.addOne(state.data, action.payload)
},
},
extraReducers: {
@@ -269,5 +269,5 @@ export const callsSlice = createSlice({
}
}
})
export const { addCall } = callsSlice.actions
export const callsReducer = callsSlice.reducer;