fix: issue title input flicker (#4775)

This commit is contained in:
Anmol Singh Bhatia 2024-06-12 15:06:42 +05:30 committed by GitHub
parent aa92ace57f
commit eb34dcaaaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@ export const IssueTitleInput: FC<IssueTitleInputProps> = observer((props) => {
/255
</div>
</div>
{title.length === 0 && <span className="text-sm text-red-500">Title is required</span>}
{title.length && title.length === 0 && <span className="text-sm text-red-500">Title is required</span>}
</div>
);
});