💄 The payment now no longer auto procced

This commit is contained in:
2025-09-08 22:48:46 +08:00
parent c4d5ba5c9d
commit 18ad4d376e

View File

@@ -142,10 +142,6 @@ class _PaymentContentState extends ConsumerState<_PaymentContent> {
// Set initial mode based on stored PIN and biometric support // Set initial mode based on stored PIN and biometric support
if (_hasStoredPin && _hasBiometricSupport && widget.enableBiometric) { if (_hasStoredPin && _hasBiometricSupport && widget.enableBiometric) {
_isPinMode = false; _isPinMode = false;
// Automatically trigger biometric authentication
WidgetsBinding.instance.addPostFrameCallback((_) {
_authenticateWithBiometric();
});
} else { } else {
_isPinMode = true; _isPinMode = true;
} }