mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-14 03:27:44 -04:00
Simplify character count display logic in SendMessageButton component
This commit is contained in:
@@ -245,9 +245,7 @@ export const SendMessageButton = (props: {
|
||||
</div>
|
||||
<span className={'tabular-nums guidance shrink-0'}>
|
||||
{charCount < MIN_CHARS
|
||||
? t('send_message.more_chars', '{count} more characters', {
|
||||
count: MIN_CHARS - charCount,
|
||||
})
|
||||
? `${charCount} / ${MIN_CHARS} min`
|
||||
: t('send_message.ready', 'Ready to send')}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user