mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 11:34:08 +00:00
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…
x
Reference in New Issue
Block a user