]> cat aescling's git repositories - mastodon.git/commitdiff
Fix character_counter.jsx (#2653)
authorAA4ch1 <aa4ch1@gmail.com>
Sun, 30 Apr 2017 12:58:33 +0000 (21:58 +0900)
committerMatt Jankowski <mjankowski@thoughtbot.com>
Sun, 30 Apr 2017 12:58:33 +0000 (08:58 -0400)
This commit fixes #2576

app/assets/javascripts/components/features/compose/components/character_counter.jsx

index 284c51b6d58ddc09b5632059074b7090b649190d..08d2ac4d1a32630ef3a92ae8d65a391746f7683e 100644 (file)
@@ -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>;