fix pendingSafeTx type issues
This commit is contained in:
parent
8f0cccdb59
commit
96ffd52266
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue