Compare commits
2 Commits
c4d5ba5c9d
...
6c847ee1e1
| Author | SHA1 | Date | |
|---|---|---|---|
|
6c847ee1e1
|
|||
|
18ad4d376e
|
@@ -789,11 +789,8 @@ class LevelingScreen extends HookConsumerWidget {
|
|||||||
if (context.mounted) showLoadingModal(context);
|
if (context.mounted) showLoadingModal(context);
|
||||||
|
|
||||||
if (paidOrder != null) {
|
if (paidOrder != null) {
|
||||||
await client.post(
|
// Wait for server to handle order
|
||||||
'/id/subscriptions/order/handle',
|
await Future.delayed(const Duration(seconds: 1));
|
||||||
data: {'order_id': paidOrder.id},
|
|
||||||
);
|
|
||||||
|
|
||||||
ref.invalidate(accountStellarSubscriptionProvider);
|
ref.invalidate(accountStellarSubscriptionProvider);
|
||||||
ref.read(userInfoProvider.notifier).fetchUser();
|
ref.read(userInfoProvider.notifier).fetchUser();
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user