Commit ad612b98 authored by bekzat kapan's avatar bekzat kapan

#7 Исправил 3 последних addCase

parent 18c39174
......@@ -68,11 +68,11 @@ const requestSlice = createSlice({
state.loading = true;
state.error = null;
})
.addCase(encodeMessage.fulfilled, (state, action) => {
.addCase(decodeMessage.fulfilled, (state, action) => {
state.loading = false;
state.result = action.payload;
})
.addCase(encodeMessage.rejected, (state, action) => {
.addCase(decodeMessage.rejected, (state, action) => {
state.loading = false;
state.error = action.error.message || "Error occured";
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment