about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAA4ch1 <aa4ch1@gmail.com>2017-04-30 21:58:33 +0900
committerMatt Jankowski <mjankowski@thoughtbot.com>2017-04-30 08:58:33 -0400
commite12bb39c20a3aba82e80aaeedf78202f9493ce73 (patch)
treef45d7d65548020dfef378d0aebb661a1633ee812
parent5caa727e7eb544909e6e31d8ef42cc9ef89d468b (diff)
Fix character_counter.jsx (#2653)
This commit fixes #2576
-rw-r--r--app/assets/javascripts/components/features/compose/components/character_counter.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/compose/components/character_counter.jsx b/app/assets/javascripts/components/features/compose/components/character_counter.jsx
index 284c51b6d..08d2ac4d1 100644
--- a/app/assets/javascripts/components/features/compose/components/character_counter.jsx
+++ b/app/assets/javascripts/components/features/compose/components/character_counter.jsx
@@ -4,7 +4,7 @@ import { length } from 'stringz';
 class CharacterCounter extends React.PureComponent {
 
   checkRemainingText (diff) {
-    if (diff <= 0) {
+    if (diff < 0) {
       return <span className='character-counter character-counter--over'>{diff}</span>;
     }
     return <span className='character-counter'>{diff}</span>;