NTP-29867 | Kamlesh | handled error case of otp verification (#14647)
This commit is contained in:
committed by
GitHub
parent
48d540e660
commit
fc5cfe9127
@@ -63,7 +63,9 @@ import kotlinx.coroutines.launch
|
||||
class OtpFragment : BaseFragment(), View.OnClickListener {
|
||||
|
||||
private lateinit var binding: OtpFragmentBinding
|
||||
private val registrationVM by lazy { ViewModelProvider(this).get(RegistrationVM::class.java) }
|
||||
private val registrationVM by lazy {
|
||||
ViewModelProvider(requireActivity()).get(RegistrationVM::class.java)
|
||||
}
|
||||
private var listener: FragmentInteractionListener? = null
|
||||
private var timer: CountDownTimer? = null
|
||||
private var latestOtpToken: String = ""
|
||||
@@ -174,8 +176,6 @@ class OtpFragment : BaseFragment(), View.OnClickListener {
|
||||
}
|
||||
}
|
||||
|
||||
registrationVM.loginResponse.observeNonNull(this) { loginListener.onLoginSuccess(it) }
|
||||
|
||||
registrationVM.wrongOtp.observeNonNull(this) {
|
||||
if (it) {
|
||||
analyticsEventTracker.onIncorrectOtp()
|
||||
|
||||
Reference in New Issue
Block a user