From 62a559b6fc4d5cdc1eb0a65512d6072f524016a5 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 1 Aug 2017 00:37:18 +0700 Subject: [PATCH] "Don't agree" is not a flag action --- client/talk-plugin-flags/components/FlagButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/talk-plugin-flags/components/FlagButton.js b/client/talk-plugin-flags/components/FlagButton.js index 6b7e3cc56..85ceed0ea 100644 --- a/client/talk-plugin-flags/components/FlagButton.js +++ b/client/talk-plugin-flags/components/FlagButton.js @@ -91,7 +91,7 @@ export default class FlagButton extends Component { reason: null, message }; - if (reason === 'I don\'t agree with this comment') { + if (reason === 'COMMENT_NOAGREE') { postDontAgree(action) .then(({data}) => { if (itemType === 'COMMENTS') {