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

Commit

Permalink
Reorder props
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Jul 31, 2019
1 parent d19582d commit c1e6e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/blocks/featured-product/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class FeaturedProduct extends Component {
}

renderApiError() {
const { error, debouncedGetProduct, isLoading } = this.props;
const { debouncedGetProduct, error, isLoading } = this.props;
const { productId } = this.props.attributes;
const onRetry = () => {
debouncedGetProduct( productId );
Expand Down
2 changes: 1 addition & 1 deletion assets/js/utils/with-get-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const withGetProduct = createHigherOrderComponent(
{ ...this.props }
debouncedGetProduct={ this.debouncedGetProduct }
error={ error }
getProduct={ this.getProduct }
isLoading={ loading }
product={ product }
getProduct={ this.getProduct }
/>;
}
};
Expand Down

0 comments on commit c1e6e32

Please sign in to comment.