Skip to content

Commit 05819f8

Browse files
committed
Getter function style
1 parent 4c711c1 commit 05819f8

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/components/product-reviews-list/product-reviews-list.jsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type Props = {
4343

4444
type State = {
4545
page: number,
46-
}
46+
};
4747

4848
type ReviewBodyProps = {
4949
title: string,
@@ -113,15 +113,16 @@ class ProductReviewsList extends Component {
113113

114114
get loadMoreActionsLink(): ?Element<any> {
115115
const { showLoadMore } = this.props;
116-
return (showLoadMore)
117-
? (
116+
117+
if (!showLoadMore) return null;
118+
119+
return (
118120
<ActionLink
119121
action={this.handleLoadMoreReviews}
120122
title="LOAD MORE REVIEWS"
121123
styleName="product-review-load-more"
122124
/>
123-
)
124-
: null;
125+
);
125126
}
126127

127128
get displayReviews(): ?Element<any> {

0 commit comments

Comments
 (0)