Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: Update order-history initial state loading based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Dec 19, 2023
1 parent fbceaa6 commit 5f4e7f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/order-history/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const orderHistoryPage = (state = initialState, action = {}) => {
case fetchOrders.TRIGGER:
return {
...state,
loading: true,
loadingError: false,
};
case fetchOrders.SUCCESS:
return {
...state,
loading: false,
orders: action.payload.orders,
count: action.payload.count,
next: action.payload.next,
Expand All @@ -32,7 +32,6 @@ const orderHistoryPage = (state = initialState, action = {}) => {
case fetchOrders.FAILURE:
return {
...state,
loading: false,
loadingError: true,
};
case fetchOrders.FULFILL:
Expand Down

0 comments on commit 5f4e7f8

Please sign in to comment.