We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c711c1 commit 05819f8Copy full SHA for 05819f8
1 file changed
src/components/product-reviews-list/product-reviews-list.jsx
@@ -43,7 +43,7 @@ type Props = {
43
44
type State = {
45
page: number,
46
-}
+};
47
48
type ReviewBodyProps = {
49
title: string,
@@ -113,15 +113,16 @@ class ProductReviewsList extends Component {
113
114
get loadMoreActionsLink(): ?Element<any> {
115
const { showLoadMore } = this.props;
116
- return (showLoadMore)
117
- ? (
+
+ if (!showLoadMore) return null;
118
119
+ return (
120
<ActionLink
121
action={this.handleLoadMoreReviews}
122
title="LOAD MORE REVIEWS"
123
styleName="product-review-load-more"
124
/>
- )
- : null;
125
+ );
126
}
127
128
get displayReviews(): ?Element<any> {
0 commit comments