diff --git a/packages/common/src/config.ts b/packages/common/src/config.ts index 156dbc0d..5dbdcce6 100644 --- a/packages/common/src/config.ts +++ b/packages/common/src/config.ts @@ -49,7 +49,7 @@ export class AliasConfig { }; static [Namespace.ANS]: ConfigTemplate = { - name: 'Algorand Namespace Service', + name: 'Algorand Name Service', ledgers: { [Ledger.TestNet]: 'https://testnet.api.algonameservice.com/names?pattern=${term}' + diff --git a/packages/extension/src/background/messaging/internalMethods.ts b/packages/extension/src/background/messaging/internalMethods.ts index 04d5482a..aec2d6da 100644 --- a/packages/extension/src/background/messaging/internalMethods.ts +++ b/packages/extension/src/background/messaging/internalMethods.ts @@ -64,10 +64,11 @@ export class InternalMethods { extensionStorage.getStorage('contacts', (storedContacts: any) => { const aliases = {}; const wallet = session.wallet; + const contacts = storedContacts || []; // Format contacts as aliases const contactAliases = []; - for (const c of storedContacts) { + for (const c of contacts) { contactAliases.push({ name: c.name, address: c.address,