Fix listing card view reactions formatting (#8988)

* Fix the listing card view reactions format

* Update test to reflect change made in the code base
This commit is contained in:
A.D. Faris 2020-06-30 16:39:10 -04:00 committed by GitHub
parent 5eaeb584b3
commit ab1afd94b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -157,7 +157,7 @@ Object {
class="hidden s:inline"
>
 
reaction
reactions
</span>
</span>
</a>
@ -365,7 +365,7 @@ Object {
class="hidden s:inline"
>
 
reaction
reactions
</span>
</span>
</a>

View file

@ -28,7 +28,7 @@ export const ReactionsCount = ({ article }) => {
{totalReactions}
<span className="hidden s:inline">
&nbsp;
{`${totalReactions > 1 ? 'reactions' : 'reaction'}`}
{`${totalReactions == 1 ? 'reaction' : 'reactions'}`}
</span>
</span>
</Button>