From ce16fca697ff7c46b637e2ef9930837f56b1cc12 Mon Sep 17 00:00:00 2001 From: pancakes Date: Sun, 15 Dec 2024 12:14:44 +1000 Subject: [PATCH] [frontend/components] Use IsNullOrWhiteSpace to check if attachment has alt text --- Iceshrimp.Frontend/Components/AttachmentComponent.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Iceshrimp.Frontend/Components/AttachmentComponent.razor b/Iceshrimp.Frontend/Components/AttachmentComponent.razor index f52b0d56..6f69cf61 100644 --- a/Iceshrimp.Frontend/Components/AttachmentComponent.razor +++ b/Iceshrimp.Frontend/Components/AttachmentComponent.razor @@ -35,7 +35,7 @@ } - @if (Attachment.AltText != null) + @if (!string.IsNullOrWhiteSpace(Attachment.AltText)) {