Skip to content

Commit

Permalink
Remove superfluous toot length check
Browse files Browse the repository at this point in the history
  • Loading branch information
noiob authored and starfall-system committed Apr 11, 2021
1 parent aeb0f34 commit 8cf1cba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand All @@ -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={
Expand Down Expand Up @@ -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>
);
Expand Down

0 comments on commit 8cf1cba

Please sign in to comment.