minor fixes

This commit is contained in:
Serhii 2024-02-15 16:30:51 +02:00
parent a7837d2014
commit 5cb2478370
2 changed files with 22 additions and 23 deletions

View file

@ -46,7 +46,6 @@ class OrderDetailsPageBodyState extends State<OrderDetailsPageBody> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Observer(builder: (_) {
return SectionStandardList( return SectionStandardList(
sectionCount: 1, sectionCount: 1,
itemCounter: (int _) => orderDetailsViewModel.items.length, itemCounter: (int _) => orderDetailsViewModel.items.length,
@ -68,7 +67,6 @@ class OrderDetailsPageBodyState extends State<OrderDetailsPageBody> {
title: '${item.title}', value: '${item.value}')); title: '${item.title}', value: '${item.value}'));
} }
}); });
});
} }
} }

View file

@ -46,7 +46,8 @@ abstract class BuyViewModelBase with Store {
bool isBuyAction = this.isBuyAction ?? true; bool isBuyAction = this.isBuyAction ?? true;
final formattedCryptoCurrency = final formattedCryptoCurrency =
cryptoCurrency != null ? CryptoCurrency.fromString(cryptoCurrency) : null; cryptoCurrency != null && cryptoCurrency.isNotEmpty
? CryptoCurrency.fromString(cryptoCurrency) : null;
final orderData = { final orderData = {
'id': orderId, 'id': orderId,