forked from eatvio/eatvio_app
fix(notifications): fixed wrong notifications rendring and changed requested pagination page
This commit is contained in:
@@ -66,7 +66,7 @@ class NotificationsCubit extends Cubit<NotificationsState> {
|
||||
|
||||
Future<void> getNotifications() async {
|
||||
try {
|
||||
final notifications = await notificationsRepository.getNotifications(page: 2);
|
||||
final notifications = await notificationsRepository.getNotifications(page: 1);
|
||||
_notifications.clear();
|
||||
_notifications.addAll(notifications ?? []);
|
||||
emit(
|
||||
|
||||
Reference in New Issue
Block a user