👽 Remove order handle in stellar program purchase
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user