From a57256906646c3c053eecbccbe70ed4d8dfb3b76 Mon Sep 17 00:00:00 2001 From: pancakes Date: Sun, 15 Dec 2024 12:44:36 +1000 Subject: [PATCH] [frontend/components] Use IsNullOrWhiteSpace for Attachment Viewer --- Iceshrimp.Frontend/Components/AttachmentView.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Frontend/Components/AttachmentView.razor b/Iceshrimp.Frontend/Components/AttachmentView.razor index ac9168a6..5c693f00 100644 --- a/Iceshrimp.Frontend/Components/AttachmentView.razor +++ b/Iceshrimp.Frontend/Components/AttachmentView.razor @@ -23,7 +23,7 @@ {
@element.AltText - @if (element.AltText is not null) + @if (!string.IsNullOrWhiteSpace(element.AltText)) {
@element.AltText
}