From 132b22153c95c9904ba7b359802505a1ecc65d52 Mon Sep 17 00:00:00 2001 From: Hodor Date: Thu, 25 Dec 2025 18:23:08 +0800 Subject: [PATCH] fix: pinnedChain array --- src/background/service/preference.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/service/preference.ts b/src/background/service/preference.ts index d22b4bb0918..ae5d0b91238 100644 --- a/src/background/service/preference.ts +++ b/src/background/service/preference.ts @@ -253,7 +253,7 @@ class PreferenceService { if (!this.store.gasCache) { this.store.gasCache = {}; } - if (!this.store.pinnedChain) { + if (!this.store.pinnedChain || !Array.isArray(this.store.pinnedChain)) { this.store.pinnedChain = []; } if (!this.store.addedToken) {