Skip to content

Commit caa0c63

Browse files
committed
fix(user_songs_page): prevent edit mode toggle button from displaying when there are no liked songs
1 parent 7f52398 commit caa0c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/screens/user_songs_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class _UserSongsPageState extends State<UserSongsPage> {
8282
appBar: AppBar(
8383
title: offlineMode.value ? Text(title) : null,
8484
actions: [
85-
if (isLikedSongs)
85+
if (isLikedSongs && songsList.isNotEmpty)
8686
IconButton(
8787
onPressed: _toggleEditMode,
8888
icon: Icon(

0 commit comments

Comments
 (0)