Skip to content

Commit

Permalink
Merge pull request #3790 from sunnykarim/develop
Browse files Browse the repository at this point in the history
WV-136: Ensuring we only see the Displaying '' of '' if we have 6 or more endorsements.
  • Loading branch information
DaleMcGrew authored Dec 4, 2023
2 parents a59b030 + a0b51ad commit 4968398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/components/Widgets/ShowMoreItems.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import styled from 'styled-components';
import PropTypes from 'prop-types';
import React, { Component } from 'react';

const MINIMUM_DENOMINATOR = 6;

class ShowMoreItems extends Component {
constructor (props) {
super(props);
Expand All @@ -11,7 +13,7 @@ class ShowMoreItems extends Component {
render () {
const { hideShowMoreLink, loadingMoreItemsNow, numberOfItemsDisplayed, numberOfItemsTotal } = this.props;

if (numberOfItemsDisplayed === 0) {
if (numberOfItemsDisplayed < MINIMUM_DENOMINATOR) {
return null;
}

Expand Down

0 comments on commit 4968398

Please sign in to comment.