diff options
Diffstat (limited to '')
-rw-r--r-- | frontend/src/app.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/frontend/src/app.rs b/frontend/src/app.rs index 2389922..b2637ac 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -33,8 +33,11 @@ fn result_component(props: &ResultComponentProps) -> Html { <p class="text-muted">{props.result.url.clone()}</p> <p class="underline-hover">{props.result.title.clone()}</p> </a> - <p>//No description if no description - {props.result.description.clone()}{format!("PRIO: {}", props.result.priority)} + <p> + {match props.result.description.clone().as_str() { + "" => "No Description.", + otherwise => otherwise, + }}{format!("PRIO: {}", props.result.priority)} </p> </div> } |