Fix character_counter.jsx (#2653)

This commit fixes #2576
shrike
AA4ch1 2017-04-30 21:58:33 +09:00 committed by Matt Jankowski
parent 5caa727e7e
commit e12bb39c20
1 changed files with 1 additions and 1 deletions

View 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>;