Skip to content
Snippets Groups Projects
Commit a17abc04 authored by vjrj's avatar vjrj
Browse files

Fix for remove card

parent fce2e4d8
No related branches found
No related tags found
No related merge requests found
...@@ -72,8 +72,9 @@ class SharedPreferencesHelper with ChangeNotifier { ...@@ -72,8 +72,9 @@ class SharedPreferencesHelper with ChangeNotifier {
saveCesiumCards(); saveCesiumCards();
} }
void removeCesiumCard(int index) { void removeCesiumCard() {
// Don't allow the last card to be removed // Don't allow the last card to be removed
final int index = getCurrentWalletIndex();
logger('Removing card at index $index'); logger('Removing card at index $index');
if (cesiumCards.length > 1) { if (cesiumCards.length > 1) {
cesiumCards.removeAt(index); cesiumCards.removeAt(index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment