diff --git a/client/src/redux/boardSlice.js b/client/src/redux/boardSlice.js index 6f7d7415..a0c010ee 100644 --- a/client/src/redux/boardSlice.js +++ b/client/src/redux/boardSlice.js @@ -26,9 +26,9 @@ export const fetchBoardData = createAsyncThunk( console.log(response); const userProfileImageUrl = response.data.userProfileImageUrl; - return response.data; + return response.data.data; } catch (error) { - return rejectWithValue(error.response.data); + return rejectWithValue(error.response.data.data); } }, );