From 130f83880cb1e09e2bdc994b9e2f40becef51a35 Mon Sep 17 00:00:00 2001 From: Manuel <5877862+manuelsc@users.noreply.github.com> Date: Tue, 24 Oct 2023 09:20:26 +0200 Subject: [PATCH] no need for dashboard request on fresh install --- src/app/utils/ValidatorUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/utils/ValidatorUtils.ts b/src/app/utils/ValidatorUtils.ts index 0b43a7c9..1422185d 100644 --- a/src/app/utils/ValidatorUtils.ts +++ b/src/app/utils/ValidatorUtils.ts @@ -262,6 +262,7 @@ export class ValidatorUtils extends CacheModule { async getAllMyValidators(): Promise { const storageKey = this.getStorageKey() const local = await this.getMapWithoutDeleted(storageKey) + if (local.size == 0) return [] const validatorString = getValidatorQueryString([...local.values()], 2000, (await this.merchantUtils.getCurrentPlanMaxValidator()) - 1)