fix pendingSafeTx type issues

This commit is contained in:
Mikhail Mikheev 2020-06-23 19:05:42 +04:00
parent 8f0cccdb59
commit 96ffd52266
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ const Open = ({ addSafe, network, provider, userAccount }) => {
// check if there is a safe being created // check if there is a safe being created
useEffect(() => { useEffect(() => {
const load = async () => { 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) { if (pendingCreation && pendingCreation.txHash) {
setSafeCreationPendingInfo(pendingCreation) setSafeCreationPendingInfo(pendingCreation)
setShowProgress(true) setShowProgress(true)
@ -167,7 +167,7 @@ const Open = ({ addSafe, network, provider, userAccount }) => {
} }
const onRetry = async () => { 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 delete values.txHash
await saveToStorage(SAFE_PENDING_CREATION_STORAGE_KEY, values) await saveToStorage(SAFE_PENDING_CREATION_STORAGE_KEY, values)
setSafeCreationPendingInfo(values) setSafeCreationPendingInfo(values)