Skip to content
Snippets Groups Projects
Commit bb3d74ae authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Fix check account exists, when service not started yet

parent b724494a
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ export class AccountService extends StartableService { ...@@ -161,7 +161,7 @@ export class AccountService extends StartableService {
// Add a V1 Dev account, if define in environment // Add a V1 Dev account, if define in environment
if (auth?.v1) { if (auth?.v1) {
const alreadyExists = auth.address ? await this.isAvailable(auth.address) : false; const alreadyExists = auth.address && this._$accounts.value.some(a => a.address === auth.address);
if (!alreadyExists) { if (!alreadyExists) {
await this.addV1Account({...auth.v1, meta: auth.meta}); await this.addV1Account({...auth.v1, meta: auth.meta});
} }
......
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