diff --git a/src/components/recovery/CancelRecoveryButton/index.tsx b/src/components/recovery/CancelRecoveryButton/index.tsx index 754cb9bf5c..4881f7b567 100644 --- a/src/components/recovery/CancelRecoveryButton/index.tsx +++ b/src/components/recovery/CancelRecoveryButton/index.tsx @@ -13,7 +13,6 @@ import useSafeInfo from '@/hooks/useSafeInfo' import useOnboard from '@/hooks/wallets/useOnboard' import { trackError, Errors } from '@/services/exceptions' import { asError } from '@/services/exceptions/utils' -import { useIsGuardian } from '@/hooks/useIsGuardian' import { useRecoveryTxState } from '@/hooks/useRecoveryTxState' import { RecoveryListItemContext } from '../RecoveryListItem/RecoveryListItemContext' import type { RecoveryQueueItem } from '@/services/recovery/recovery-state' @@ -27,7 +26,6 @@ export function CancelRecoveryButton({ }): ReactElement { const { setSubmitError } = useContext(RecoveryListItemContext) const isOwner = useIsSafeOwner() - const isGuardian = useIsGuardian() const { isExpired, isPending } = useRecoveryTxState(recovery) const { setTxFlow } = useContext(TxModalContext) const onboard = useOnboard() @@ -59,7 +57,7 @@ export function CancelRecoveryButton({ return ( {(isOk) => { - const isDisabled = !isOk || isPending || (isGuardian && !isExpired) + const isDisabled = isPending || (isOwner ? !isOk : !isOk || !isExpired) return compact ? ( diff --git a/src/components/settings/Recovery/index.tsx b/src/components/settings/Recovery/index.tsx index 394a2fa854..24183298fc 100644 --- a/src/components/settings/Recovery/index.tsx +++ b/src/components/settings/Recovery/index.tsx @@ -32,7 +32,7 @@ const headCells = [ label: ( <> Recovery delay{' '} - + Recovery delay - + - You can cancel any recovery attempt when it is not needed or wanted within the delay period. + You can cancel any recovery attempt when it is not needed or wanted.