Fix author display logic to handle empty author names

This commit is contained in:
Moustapha Kodjo Amadou 2025-11-08 23:45:04 +01:00
parent b42e0ad4bd
commit 099805b21c

View file

@ -169,7 +169,9 @@ class _MangaDetailsViewState extends ConsumerState<MangaDetailsView> {
Icon(Icons.person_outline, size: 14),
const SizedBox(width: 4),
Text(
widget.manga.author ?? l10n.unknown,
(widget.manga.author?.isEmpty ?? false)
? l10n.unknown
: widget.manga.author!,
style: const TextStyle(fontWeight: FontWeight.w500),
),
],