From 0dfce9dfcf903be9bb4bd27a3b9121c81ac4cfa4 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 29 Jun 2020 08:06:54 -0700 Subject: [PATCH 1/1] Set kudos to null if no answer is starred This fixes the bug we saw last night where nobody could submit judging results until they had starred at least one item. --- empathy/empathy.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 5782b78..bc70a85 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -503,7 +503,7 @@ class Ambiguities extends React.PureComponent { const response = await fetch_post_json( `judged/${this.props.prompt.id}`,{ word_groups: this.state.word_sets.map(set => Array.from(set)), - kudos: Array.from(this.state.starred) + kudos: this.state.starred ? Array.from(this.state.starred) : null } ); -- 2.43.0