Commit ad612b98 authored by bekzat kapan's avatar bekzat kapan

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

parent 18c39174
...@@ -68,11 +68,11 @@ const requestSlice = createSlice({ ...@@ -68,11 +68,11 @@ const requestSlice = createSlice({
state.loading = true; state.loading = true;
state.error = null; state.error = null;
}) })
.addCase(encodeMessage.fulfilled, (state, action) => { .addCase(decodeMessage.fulfilled, (state, action) => {
state.loading = false; state.loading = false;
state.result = action.payload; state.result = action.payload;
}) })
.addCase(encodeMessage.rejected, (state, action) => { .addCase(decodeMessage.rejected, (state, action) => {
state.loading = false; state.loading = false;
state.error = action.error.message || "Error occured"; 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