fix(ui): narrow the markdown image src to a string

This commit is contained in:
mateo-berri 2026-09-25 20:19:33 -07:00
parent b75035df90
commit e06d3faf76

View file

@ -11,7 +11,7 @@ function describeImageSource(src: string): string {
export function MarkdownImage({ src, alt, title }: MarkdownImageProps) {
const [loaded, setLoaded] = useState(false);
if (!src) {
if (typeof src !== "string" || src === "") {
return <span>{alt}</span>;
}