From: Carl Worth <cworth@cworth.org>
Date: Sun, 28 Jun 2020 15:20:15 +0000 (-0700)
Subject: Use "answer" instead of "answers" when there is only one item in a category
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=f8b6dc7aef51ccc82d163f015612c7640f0be365;p=lmno.games

Use "answer" instead of "answers" when there is only one item in a category

It's funny that here I'm taking advantage of the witespace elimination
that I complained about just a couple of commits ago. Ah well.
---

diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index d7e6f6f..6133463 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -768,7 +768,8 @@ class ActivePrompt extends React.PureComponent {
         <p>
           Remember, you're trying to match your answers with
           what the other players submit.
-          Give {this.props.prompt.items} answers for the following prompt:
+          Give {this.props.prompt.items} answer
+          {this.props.prompt.items > 1 ? 's' : ''} for the following prompt:
         </p>
         <h2>{this.props.prompt.prompt}</h2>
         <form onSubmit={this.handle_submit}>