mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
minor fixes
This commit is contained in:
@@ -123,7 +123,9 @@ class LightningWallet {
|
||||
|
||||
Future<void> close() async {
|
||||
_eventSubscription?.cancel();
|
||||
await _sdk?.disconnect();
|
||||
try {
|
||||
await _sdk?.disconnect();
|
||||
} catch (_) {}
|
||||
_logSubscription?.cancel();
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,13 @@ BigInt? tryParseFixed(String value, int decimals) {
|
||||
BigInt parseFixed(String value, int decimals) {
|
||||
final multiplier = getMultiplier(decimals);
|
||||
|
||||
/// handle weird cases where users enter spaces and currency after the amount
|
||||
/// This should be handled from UI field to prevent non numerical values
|
||||
/// but will be in the refactoring
|
||||
if (value.contains(" ")) {
|
||||
value = value.split(" ").first;
|
||||
}
|
||||
|
||||
final negative = value.startsWith("-");
|
||||
if (negative) value = value.substring(1);
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
"centralized": "Centralizzato",
|
||||
"chain_id": "ID catena",
|
||||
"chains": "Chain",
|
||||
"change": "Resto",
|
||||
"change": "Cambia",
|
||||
"change_backup_password_alert": "I tuoi file di backup precedenti non potranno essere importati con la nuova password di backup. La nuova password di backup verrà usata solo per i nuovi file di backup. Sei sicuro di voler cambiare la password di backup?",
|
||||
"change_currency": "Cambia valuta",
|
||||
"change_current_node": "Sei sicuro di voler cambiare il nodo corrente in ${node}?",
|
||||
|
||||
Reference in New Issue
Block a user