Skip to content

Commit

Permalink
fix(79098272): show "not found" instead of "NoN" for a null nationali…
Browse files Browse the repository at this point in the history
…ty of an actor
  • Loading branch information
Maxiboy441 committed Sep 13, 2024
1 parent f602ce8 commit 0434213
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Project/Project/Views/Actor/Show.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@
<div class="actor-card card bg-dark-gray text-light h-100">
<div class="actor-card-body card-body">
<h5 class="card-title text-purple">Nationality</h5>
<p class="card-text fs-4">@Model.Nationality</p>
@if (@Model.Nationality != "NoN")
{
<p class="card-text fs-4">@Model.Nationality</p>
}
else
{
<p class="card-text fs-4">Not found</p>
}
</div>
</div>
</div>
Expand Down

0 comments on commit 0434213

Please sign in to comment.