From d9d92a75fa2bb3f8d45d34b4ae44da67296cdf7a Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sun, 5 Nov 2023 17:22:16 +0100 Subject: [PATCH] Handle source not supporting browse "latest" (#443) --- src/screens/SourceMangas.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/screens/SourceMangas.tsx b/src/screens/SourceMangas.tsx index 4c98d451..742a2479 100644 --- a/src/screens/SourceMangas.tsx +++ b/src/screens/SourceMangas.tsx @@ -343,13 +343,16 @@ export function SourceMangas() { > {t('global.button.popular')} - } - onClick={() => updateContentType(SourceContentType.LATEST)} - > - {t('global.button.latest')} - + {source?.supportsLatest === undefined || source.supportsLatest ? ( + } + onClick={() => updateContentType(SourceContentType.LATEST)} + > + {t('global.button.latest')} + + ) : null} }