mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 18:40:12 -05:00
parent
5caa727e7e
commit
e12bb39c20
@ -4,7 +4,7 @@ import { length } from 'stringz';
|
|||||||
class CharacterCounter extends React.PureComponent {
|
class CharacterCounter extends React.PureComponent {
|
||||||
|
|
||||||
checkRemainingText (diff) {
|
checkRemainingText (diff) {
|
||||||
if (diff <= 0) {
|
if (diff < 0) {
|
||||||
return <span className='character-counter character-counter--over'>{diff}</span>;
|
return <span className='character-counter character-counter--over'>{diff}</span>;
|
||||||
}
|
}
|
||||||
return <span className='character-counter'>{diff}</span>;
|
return <span className='character-counter'>{diff}</span>;
|
||||||
|
Loading…
Reference in New Issue
Block a user