From 8dcbf0fb041b3ba17eb5de32531a7f93c66a805b Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Wed, 27 Mar 2024 11:52:51 +0800 Subject: [PATCH] Handle non-StackOverflow Qs --- MyApp/Components/Shared/QuestionPost.razor | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/MyApp/Components/Shared/QuestionPost.razor b/MyApp/Components/Shared/QuestionPost.razor index ed47fcf..98c5632 100644 --- a/MyApp/Components/Shared/QuestionPost.razor +++ b/MyApp/Components/Shared/QuestionPost.razor @@ -13,7 +13,14 @@
- asked + @if (Question.Post is { Id: < 100_000_000, CreatedBy: null }) + { + asked + } + else + { + asked + } @((DateTime.UtcNow - Question.Post.CreationDate).TimeAgo())
@if (Question.Post.LastEditDate != null) @@ -63,7 +70,14 @@ @if (Question.Post.LastEditDate != null) {
- edited + @if (Question.Post is { Id: < 100_000_000, CreatedBy: null }) + { + edited + } + else + { + edited + }