From 81f6d84e33e6c1af7ce4d7c1999ed496524c9569 Mon Sep 17 00:00:00 2001 From: azimut Date: Tue, 2 Apr 2024 21:56:49 -0300 Subject: [PATCH] adds message when no episode content, fixes #30 --- frontend/src/Main.elm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/Main.elm b/frontend/src/Main.elm index 678f03c..e920f04 100644 --- a/frontend/src/Main.elm +++ b/frontend/src/Main.elm @@ -167,7 +167,14 @@ fillDetails eDetails = List.map (\entry -> if entry.id == eDetails.id then - { entry | content = eDetails.content } + { entry + | content = + if eDetails.content == "" then + "No description." + + else + eDetails.content + } else entry