Simplify character count display logic in SendMessageButton component

This commit is contained in:
MartinBraquet
2026-04-07 13:23:18 +02:00
parent 7dfaeb7692
commit b5a66d9c28

View File

@@ -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>