diff --git a/app/src/main/java/com/hazard/samarpan/Main2Activity.kt b/app/src/main/java/com/hazard/samarpan/Main2Activity.kt index 1190f2c..182f7be 100644 --- a/app/src/main/java/com/hazard/samarpan/Main2Activity.kt +++ b/app/src/main/java/com/hazard/samarpan/Main2Activity.kt @@ -24,4 +24,5 @@ class Main2Activity : AppCompatActivity() { finish() } } + } \ No newline at end of file diff --git a/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt b/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt index 2bea4e5..1b1fc6d 100644 --- a/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt +++ b/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt @@ -115,7 +115,7 @@ class UserRegisterFragment : Fragment() { ).show() //collecting the user data from the app with the help of the below method - val documentReference :DocumentReference=db.collection("donors").document( + val documentReference :DocumentReference=db.collection("users").document( user?.uid ?: "" ) val donorInfo: MutableMap = HashMap()