diff --git a/apps/extension/src/routes/popup/settings/settings-clear-cache.tsx b/apps/extension/src/routes/popup/settings/settings-clear-cache.tsx index 542220c8..eb4582dc 100644 --- a/apps/extension/src/routes/popup/settings/settings-clear-cache.tsx +++ b/apps/extension/src/routes/popup/settings/settings-clear-cache.tsx @@ -17,7 +17,7 @@ const useCacheClear = () => { setLoading(true); void (async function () { - await setFullSyncHeight(0); + await setFullSyncHeight(undefined); await chrome.runtime.sendMessage(ServicesMessage.ClearCache); navigate(PopupPath.INDEX); })(); diff --git a/apps/extension/src/state/network.ts b/apps/extension/src/state/network.ts index 91d83c40..7eae85ec 100644 --- a/apps/extension/src/state/network.ts +++ b/apps/extension/src/state/network.ts @@ -8,7 +8,7 @@ export interface NetworkSlice { chainId?: string; setGRPCEndpoint: (endpoint: string) => Promise; setChainId: (chainId: string) => void; - setFullSyncHeight: (value: number) => Promise; + setFullSyncHeight: (value?: number) => Promise; } export const createNetworkSlice = diff --git a/apps/extension/src/state/persist.ts b/apps/extension/src/state/persist.ts index 937edb6b..5461edc5 100644 --- a/apps/extension/src/state/persist.ts +++ b/apps/extension/src/state/persist.ts @@ -42,7 +42,7 @@ export const customPersistImpl: Persist = f => (set, get, store) => { state.connectedSites.knownSites = knownSites; state.defaultFrontend.url = frontendUrl; state.numeraires.selectedNumeraires = numeraires; - state.network.fullSyncHeight = fullSyncHeight ?? 0; + state.network.fullSyncHeight = fullSyncHeight; }), );