Skip to content

Commit

Permalink
Adjust array name
Browse files Browse the repository at this point in the history
  • Loading branch information
akezeth committed Jun 27, 2023
1 parent 7359b93 commit f126508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redux/rocket/rocketSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const rocketSlice = createSlice({
description: rocketDescription,
flickr_images: images,
};
state.Rockets.push(rocket);
state.rockets.push(rocket);
},
},
extraReducers: (builder) => {
Expand All @@ -40,7 +40,7 @@ const rocketSlice = createSlice({
})
.addCase(fetchRockets.fulfilled, (state, action) => {
state.isLoading = false;
state.Rockets = action.payload.map((rocket) => ({
state.rockets = action.payload.map((rocket) => ({
id: rocket.id,
rocket_name: rocket.name,
description: rocket.description,
Expand Down

0 comments on commit f126508

Please sign in to comment.