fix switch statement logic

This commit is contained in:
julian 2023-08-23 11:35:04 -06:00
parent 63ab0b09e8
commit 4de632bdb4
3 changed files with 6 additions and 12 deletions

View file

@ -205,9 +205,8 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
case Coin.nano:
case Coin.banano:
throw UnimplementedError();
//TODO: check network/node
case Coin.tezos:
throw UnimplementedError();
//TODO: check network/node
}

View file

@ -173,6 +173,9 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
case Coin.nano:
case Coin.banano:
case Coin.tezos:
throw UnimplementedError();
//TODO: check network/node
case Coin.stellar:
case Coin.stellarTestnet:
try {
@ -181,11 +184,6 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
testPassed = false;
}
break;
case Coin.nano:
case Coin.banano:
case Coin.tezos:
throw UnimplementedError();
//TODO: check network/node
}
if (testPassed) {

View file

@ -196,6 +196,8 @@ class _NodeCardState extends ConsumerState<NodeCard> {
case Coin.nano:
case Coin.banano:
case Coin.tezos:
//TODO: check network/node
throw UnimplementedError();
case Coin.stellar:
case Coin.stellarTestnet:
try {
@ -204,11 +206,6 @@ class _NodeCardState extends ConsumerState<NodeCard> {
testPassed = false;
}
break;
case Coin.nano:
case Coin.banano:
throw UnimplementedError();
//TODO: check network/node
}
if (testPassed) {