Skip to content

Commit

Permalink
fix: Disable create button if deploy props are loading
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Feb 7, 2024
1 parent e040a48 commit 8481c7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/new-safe/create/steps/ReviewStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const ReviewStep = ({ data, onSubmit, onBack, setStep }: StepRenderProps<NewSafe
const canRelay = hasRemainingRelays(minRelays)
const willRelay = canRelay && executionMethod === ExecutionMethod.RELAY

const [deployProps] = useGetDeployProps(data, provider, chain)
const [deployProps, _, deployPropsLoading] = useGetDeployProps(data, provider, chain)

const safeParams = useMemo(() => {
return {
Expand Down Expand Up @@ -209,7 +209,7 @@ const ReviewStep = ({ data, onSubmit, onBack, setStep }: StepRenderProps<NewSafe
}

const isSocialLogin = isSocialLoginWallet(wallet?.label)
const isDisabled = isWrongChain || (isSocialLogin && !willRelay)
const isDisabled = isWrongChain || (isSocialLogin && !willRelay) || deployPropsLoading

return (
<>
Expand Down

0 comments on commit 8481c7a

Please sign in to comment.