Skip to content

Commit

Permalink
fix ux bug where not logged in user cant click add to playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Outlet7493 committed Jan 14, 2024
1 parent d0d045d commit 3b5fca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/videos/states/add_to_playlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class AddToPlaylistCubit extends Cubit<AddToPlaylistController> {
late List<Playlist> playlists;
if (state.isLoggedIn) {
playlists = await service.getUserPlaylists();
} else {
playlists = List.empty();
}
emit(state.copyWith(playlists: playlists, loading: false));
}
Expand Down
2 changes: 1 addition & 1 deletion submodules/flutter
Submodule flutter updated 139 files

0 comments on commit 3b5fca9

Please sign in to comment.