added new response data from notifications api
This commit is contained in:
@@ -17,9 +17,9 @@ class NotificationImportantTab extends StatelessWidget {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
}
|
||||
|
||||
final importantFromApi = viewModel.importantNotificationResponse?.data?.notifications ?? [];
|
||||
final importantFromApi = viewModel.importantNotificationResponse?.data ?? [];
|
||||
|
||||
final allNotifications = viewModel.allNotificationResponse?.data?.notifications ?? [];
|
||||
final allNotifications = viewModel.allNotificationResponse?.data ?? [];
|
||||
|
||||
final source = importantFromApi.isNotEmpty ? importantFromApi : allNotifications;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user