feat: in case total chars doesn't exists or it's wrong

This commit is contained in:
Nevo David 2025-06-27 11:57:07 +07:00
parent 2537d95d73
commit 494df9c3db
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ export const Editor: FC<{
/>
)}
</div>
{props.totalChars > 0 && (
{(props?.totalChars || 0) > 0 && (
<div
className={clsx(
'text-end text-sm mt-1',