mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-31 14:31:03 +00:00
Allow injection failure
This commit is contained in:
@@ -275,7 +275,11 @@ export class Keyring extends Base implements KeyringStruct {
|
||||
|
||||
injected.forEach((account): void => {
|
||||
if (this.allowGenesis(account)) {
|
||||
this.loadInjected(account.address, account.meta);
|
||||
try {
|
||||
this.loadInjected(account.address, account.meta);
|
||||
} catch (error) {
|
||||
console.warn(`Failed loading ${account.address}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user