Skip to content

Commit

Permalink
fix null check for AsyncError in metadata provider on lyrics screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed May 13, 2024
1 parent 4dd038f commit 34d3289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/screens/lyrics_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class _LyricsViewState extends ConsumerState<LyricsView>
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) {
Expand Down

0 comments on commit 34d3289

Please sign in to comment.