From 37a921fe6b9c664da0b33b76f7d6855e8679c754 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 11 Jun 2020 07:24:39 -0700 Subject: [PATCH] Use triple-equals instead of double Following Richard's rule of "only ever use triple-equals, never double". --- empathy/empathy.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index cd5f342..6f051f4 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -328,7 +328,7 @@ class ActivePrompt extends React.PureComponent { const response = await fetch_post_json(`answer/${this.props.prompt.id}`, { answers: this.answers.map(r => r.current.value) }); - if (response.status == 200) { + if (response.status === 200) { const result = await response.json(); if (! result.valid) { add_message("danger", result.message); -- 2.43.0