Remove superfluous toot length check
parent
2ea3cbf7ec
commit
137a3f6648
|
@ -47,7 +47,7 @@ class Publisher extends ImmutablePureComponent {
|
|||
|
||||
const diff = maxChars - length(countText || '');
|
||||
const computedClass = classNames('composer--publisher', {
|
||||
disabled: disabled || diff < 0,
|
||||
disabled: disabled,
|
||||
over: diff < 0,
|
||||
});
|
||||
|
||||
|
@ -56,7 +56,7 @@ class Publisher extends ImmutablePureComponent {
|
|||
{sideArm && sideArm !== 'none' ? (
|
||||
<Button
|
||||
className='side_arm'
|
||||
disabled={disabled || diff < 0}
|
||||
disabled={disabled}
|
||||
onClick={onSecondarySubmit}
|
||||
style={{ padding: null }}
|
||||
text={
|
||||
|
@ -110,7 +110,7 @@ class Publisher extends ImmutablePureComponent {
|
|||
}()}
|
||||
title={`${intl.formatMessage(messages.publish)}: ${intl.formatMessage({ id: `privacy.${privacy}.short` })}`}
|
||||
onClick={this.handleSubmit}
|
||||
disabled={disabled || diff < 0}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue