From d74ef20a871a9548097e3ef4fb3539c2b6a5d0dc Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 29 Jun 2020 08:29:51 -0700 Subject: [PATCH] Define the move_on button after the still_waiting component This is just code movement here with no intended logical change. The motivation here is so that the "Move On" button can be worded differently depending on who we're waiting for. --- empathy/empathy.jsx | 47 +++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 6acf526..2511250 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -789,29 +789,6 @@ class ActivePrompt extends React.PureComponent { } render() { - let move_on_button = null; - if (this.props.idle) { - move_on_button =( - - ); - } let still_waiting = null; const answering_players = Object.keys(this.props.players_answering);; @@ -845,6 +822,30 @@ class ActivePrompt extends React.PureComponent { ); } + let move_on_button = null; + if (this.props.idle) { + move_on_button =( + + ); + } + if (this.props.players_answered.has(this.props.player.name)) { return (
-- 2.43.0