diff --git a/src/routes/open/container/Open.tsx b/src/routes/open/container/Open.tsx index 7c8f2f28..a6aa4737 100644 --- a/src/routes/open/container/Open.tsx +++ b/src/routes/open/container/Open.tsx @@ -103,7 +103,7 @@ const Open = ({ addSafe, network, provider, userAccount }) => { // check if there is a safe being created useEffect(() => { const load = async () => { - const pendingCreation = await loadFromStorage(SAFE_PENDING_CREATION_STORAGE_KEY) + const pendingCreation = await loadFromStorage<{ txHash: string }>(SAFE_PENDING_CREATION_STORAGE_KEY) if (pendingCreation && pendingCreation.txHash) { setSafeCreationPendingInfo(pendingCreation) setShowProgress(true) @@ -167,7 +167,7 @@ const Open = ({ addSafe, network, provider, userAccount }) => { } const onRetry = async () => { - const values = await loadFromStorage(SAFE_PENDING_CREATION_STORAGE_KEY) + const values = await loadFromStorage<{ txHash: string }>(SAFE_PENDING_CREATION_STORAGE_KEY) delete values.txHash await saveToStorage(SAFE_PENDING_CREATION_STORAGE_KEY, values) setSafeCreationPendingInfo(values)