Skip to content

Commit

Permalink
Fix: no confirmations
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Sep 26, 2024
1 parent e2e90a1 commit a15acaf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/tx-flow/common/TxLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ type TxLayoutProps = {
isBatch?: boolean
isReplacement?: boolean
isMessage?: boolean
isRecovery?: boolean
}

const TxLayout = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type SyntheticEvent, useContext, useCallback } from 'react'
import { type SyntheticEvent, useContext, useCallback, useEffect } from 'react'
import { CircularProgress, CardActions, Button, Typography, Stack, Divider } from '@mui/material'
import CheckWallet from '@/components/common/CheckWallet'
import { Errors, trackError } from '@/services/exceptions'
Expand All @@ -15,6 +15,7 @@ import { RecoveryDescription } from '@/features/recovery/components/RecoveryDesc
import { useAsyncCallback } from '@/hooks/useAsync'
import FieldsGrid from '@/components/tx/FieldsGrid'
import EthHashInfo from '@/components/common/EthHashInfo'
import { SafeTxContext } from '../../SafeTxProvider'

type RecoveryAttemptReviewProps = {
item: RecoveryQueueItem
Expand All @@ -25,6 +26,7 @@ const RecoveryAttemptReview = ({ item }: RecoveryAttemptReviewProps) => {
const wallet = useWallet()
const { safe } = useSafeInfo()
const { setTxFlow } = useContext(TxModalContext)
const { setNonceNeeded } = useContext(SafeTxContext)

const onFormSubmit = useCallback(
async (e: SyntheticEvent) => {
Expand All @@ -48,6 +50,10 @@ const RecoveryAttemptReview = ({ item }: RecoveryAttemptReviewProps) => {
[asyncCallback, setTxFlow, wallet, safe, item.address, item.args],
)

useEffect(() => {
setNonceNeeded(false)
}, [setNonceNeeded])

return (
<TxCard>
<form onSubmit={onFormSubmit}>
Expand Down
1 change: 0 additions & 1 deletion src/components/tx-flow/flows/UpsertRecovery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ function UpsertRecoveryFlow({ delayModifier }: { delayModifier?: RecoveryState[n
onBack={prevStep}
hideNonce={isIntro}
hideProgress={isIntro}
isRecovery={!isIntro}
>
{steps}
</TxLayout>
Expand Down

0 comments on commit a15acaf

Please sign in to comment.