diff options
Diffstat (limited to 'src/state/models/votes-view.ts')
-rw-r--r-- | src/state/models/votes-view.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/state/models/votes-view.ts b/src/state/models/votes-view.ts index 6e9130e90..64da6b227 100644 --- a/src/state/models/votes-view.ts +++ b/src/state/models/votes-view.ts @@ -102,7 +102,11 @@ export class VotesViewModel { private async _resolveUri() { const urip = new AtUri(this.params.uri) if (!urip.host.startsWith('did:')) { - urip.host = await this.rootStore.resolveName(urip.host) + try { + urip.host = await this.rootStore.resolveName(urip.host) + } catch (e: any) { + this.error = e.toString() + } } runInAction(() => { this.resolvedUri = urip.toString() |