diff --git a/src/components/recovery/CancelRecoveryButton/index.tsx b/src/components/recovery/CancelRecoveryButton/index.tsx index 9d4a5ef6e4..6e9ff13c56 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 { logError, Errors } from '@/services/exceptions' import { RecoveryContext } from '../RecoveryContext' -import { useIsGuardian } from '@/hooks/useIsGuardian' import { useRecoveryTxState } from '@/hooks/useRecoveryTxState' import type { RecoveryQueueItem } from '@/services/recovery/recovery-state' @@ -25,7 +24,6 @@ export function CancelRecoveryButton({ compact?: boolean }): ReactElement { const isOwner = useIsSafeOwner() - const isGuardian = useIsGuardian() const { isExpired } = useRecoveryTxState(recovery) const { setTxFlow } = useContext(TxModalContext) const onboard = useOnboard() @@ -55,7 +53,7 @@ export function CancelRecoveryButton({ return ( {(isOk) => { - const isDisabled = !isOk || (isGuardian && !isExpired) + const isDisabled = isOwner ? !isOk : !isOk || !isExpired return compact ? ( diff --git a/src/components/settings/Recovery/index.tsx b/src/components/settings/Recovery/index.tsx index 4c993ae07e..77f61c4b6a 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.