Skip to content

Commit

Permalink
🗑️ Remove safe call on NavController
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamparter committed Jul 18, 2024
1 parent cbb4318 commit 9e1c21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/dev/riverside/credit/Biometrics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class Biometrics : Fragment() {

override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult) {
super.onAuthenticationSucceeded(result)
val navController = view?.findNavController()
navController?.navigate(R.id.action_biometrics_to_homepage)
val navController = view.findNavController()
navController.navigate(R.id.action_biometrics_to_homepage)
}

override fun onAuthenticationFailed() {
Expand Down

0 comments on commit 9e1c21e

Please sign in to comment.