mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
json encoding fix 2
This commit is contained in:
parent
2562305d7c
commit
9d01f0beaa
1 changed files with 3 additions and 3 deletions
|
@ -958,10 +958,10 @@ class Prefs extends ChangeNotifier {
|
|||
key: "fusionServerInfo",
|
||||
) as String?;
|
||||
|
||||
if (saved == null) {
|
||||
try {
|
||||
return FusionInfo.fromJsonString(saved!);
|
||||
} catch (_) {
|
||||
return FusionInfo.DEFAULTS;
|
||||
} else {
|
||||
return FusionInfo.fromJsonString(saved);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue