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
|
// 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)
|
||||||
|
|
Loading…
Reference in New Issue