hotfix/keep-accounts
This commit is contained in:
		@@ -24,6 +24,7 @@ export const importAccount = (secret: string) => {
 | 
			
		||||
    sequence: 1,
 | 
			
		||||
    hooks: [],
 | 
			
		||||
    isLoading: false,
 | 
			
		||||
    version: '2'
 | 
			
		||||
  });
 | 
			
		||||
  return toast.success("Account imported successfully!");
 | 
			
		||||
};
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user