hotfix/keep-accounts

This commit is contained in:
Valtteri Karesto
2022-03-25 10:49:29 +02:00
parent 7ffcfd694d
commit 84e6763495
2 changed files with 2 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ export const importAccount = (secret: string) => {
sequence: 1,
hooks: [],
isLoading: false,
version: '2'
});
return toast.success("Account imported successfully!");
};

View File

@@ -121,7 +121,7 @@ if (typeof window !== "undefined") {
initialAccounts = JSON.parse(localStorageAccounts);
}
// filter out old accounts (they do not have version property at all)
initialAccounts = initialAccounts.filter(acc => acc.version === '2');
// initialAccounts = initialAccounts.filter(acc => acc.version === '2');
}
// Initialize state