From 34d3289586a4f2a8d73497909834d305ba40c1a3 Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Tue, 14 May 2024 00:19:14 +0200 Subject: [PATCH] fix null check for AsyncError in metadata provider on lyrics screen --- lib/screens/lyrics_screen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/screens/lyrics_screen.dart b/lib/screens/lyrics_screen.dart index 76d5ef067..193558c20 100644 --- a/lib/screens/lyrics_screen.dart +++ b/lib/screens/lyrics_screen.dart @@ -261,7 +261,7 @@ class _LyricsViewState extends ConsumerState message: "Loading lyrics...", icon: TablerIcons.microphone_2, ); - } else if (metadata.value == null || + } else if (!metadata.hasValue || metadata.value == null || metadata.value!.hasLyrics && metadata.value!.lyrics == null && !metadata.isLoading) {