Fixed navigation

This commit is contained in:
Arseni
2025-11-21 21:09:32 +03:00
parent acbab71a57
commit 775312d174
3 changed files with 25 additions and 9 deletions

View File

@@ -135,8 +135,11 @@ class PaymentBackButton extends StatelessWidget {
child: IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () {
onBack?.call(pageSelector.selectedRecipient);
pageSelector.goBackFromPayment();
if (onBack != null) {
onBack!(pageSelector.selectedRecipient);
} else {
pageSelector.goBackFromPayment();
}
},
),
);