mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 04:19:36 +00:00
minor fixes
This commit is contained in:
parent
b97e2860ff
commit
27add70e61
2 changed files with 9 additions and 8 deletions
|
@ -208,15 +208,16 @@ class LightningReceiveOnchainPage extends BasePage {
|
|||
return Expanded(
|
||||
child: Container(child: Center(child: CircularProgressIndicator())));
|
||||
}
|
||||
String min = (snapshot.data as List<String>)[1];
|
||||
String max = (snapshot.data as List<String>)[2];
|
||||
String fee = (snapshot.data as List<String>)[3];
|
||||
min = satsToLightningString(double.parse(min));
|
||||
max = satsToLightningString(double.parse(max));
|
||||
fee = satsToLightningString(double.parse(fee));
|
||||
int min = (snapshot.data as List<int>)[1];
|
||||
int max = (snapshot.data as List<int>)[2];
|
||||
int fee = (snapshot.data as List<int>)[3];
|
||||
return Expanded(
|
||||
child: Text(
|
||||
S.of(context).lightning_receive_limits(min, max, fee),
|
||||
S.of(context).lightning_receive_limits(
|
||||
satsToLightningString(min),
|
||||
satsToLightningString(max),
|
||||
satsToLightningString(fee),
|
||||
),
|
||||
maxLines: 10,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
|
|
|
@ -45,7 +45,7 @@ class LightningInvoiceForm extends StatelessWidget {
|
|||
controller: amountController,
|
||||
focusNode: depositAmountFocus,
|
||||
maxAmount: '',
|
||||
minAmount: (lightningInvoicePageViewModel.minimum != null) ? satsToLightningString(lightningInvoicePageViewModel.minimum!) : '...',
|
||||
minAmount: (lightningInvoicePageViewModel.minimum != null) ? satsToLightningString(lightningInvoicePageViewModel.minimum!.round()) : '...',
|
||||
selectedCurrency: CryptoCurrency.satoshis,
|
||||
);
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue