From a8bf3647a1b4365789e2e18d4bc128ddf62ad504 Mon Sep 17 00:00:00 2001 From: mohamedkaif356 Date: Thu, 22 Jun 2023 16:41:45 +0530 Subject: [PATCH] Delete incomplete registration Entry --- .../example/hposregistration/ui/fragments/UserListFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/example/hposregistration/ui/fragments/UserListFragment.kt b/app/src/main/java/com/example/hposregistration/ui/fragments/UserListFragment.kt index a0b1a44..4b8cd00 100644 --- a/app/src/main/java/com/example/hposregistration/ui/fragments/UserListFragment.kt +++ b/app/src/main/java/com/example/hposregistration/ui/fragments/UserListFragment.kt @@ -153,7 +153,7 @@ class UserListFragment : BaseFragment() { private fun deteleIncompleteRegistration(userDataList: List) { userDataList.forEach { - if (it.userImage.isEmpty()) { + if (it._id.isEmpty()) { viewModel.deleteById(it._id) } }