Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Imported accounts numbering & separation
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Oct 18, 2023
1 parent 197143f commit 655b25f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:datadashwallet/common/common.dart';
import 'package:datadashwallet/core/core.dart';
import 'package:datadashwallet/features/settings/settings.dart';
import 'package:datadashwallet/features/settings/subfeatures/accounts/show_accounts_dialog.dart';
import 'package:datadashwallet/features/settings/subfeatures/accounts/subfeatures/account_details/import_account_page.dart';
import 'package:datadashwallet/features/settings/subfeatures/accounts/subfeatures/import_account/import_account_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ImportAccountPresenter extends CompletePresenter<ImportAccountState> {
void onSave() async {
loading = true;
try {
final index = _accountUserCase.findAccountsLastIndex();
final index = _accountUserCase.accounts.value.length;
final privateKey = privateKeyController.text;

final newAccount =
Expand Down

0 comments on commit 655b25f

Please sign in to comment.