From 89c929f970b015d871911d03674b2b9c360fd595 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 11 Jan 2018 11:16:30 +0100 Subject: [PATCH] Fix suspect label --- client/coral-admin/src/components/CommentLabels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-admin/src/components/CommentLabels.js b/client/coral-admin/src/components/CommentLabels.js index a40777c40..f39b6e550 100644 --- a/client/coral-admin/src/components/CommentLabels.js +++ b/client/coral-admin/src/components/CommentLabels.js @@ -22,7 +22,7 @@ function getUserFlaggedType(actions) { } function hasSuspectedWords(actions) { - return actions.some((action) => action.__typename === 'FlagAction' && action.reason === 'Matched suspect word filter'); + return actions.some((action) => action.__typename === 'FlagAction' && action.reason === 'SUSPECT_WORD'); } function hasHistoryFlag(actions) {