Skip to content

Commit

Permalink
fix: review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Sep 17, 2024
1 parent 4ca5876 commit ef06e9a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ const ReplaySafeDialog = ({
<Typography variant="body2">Loading Safe data</Typography>
</Stack>
) : isUnsupportedSafeCreationVersion ? (
<Typography>
<ErrorMessage>
This account was created from an outdated mastercopy. Adding another network is not possible.
</Typography>
</ErrorMessage>
) : (
<FormProvider {...formMethods}>
<Stack spacing={2}>
Expand Down Expand Up @@ -200,7 +200,10 @@ export const CreateSafeOnNewChain = ({
const safeCreationResult = useSafeCreationData(safeAddress, deployedChains)
const allCompatibleChains = useCompatibleNetworks(safeCreationResult[0])
const isUnsupportedSafeCreationVersion = Boolean(!allCompatibleChains?.length)
const replayableChains = allCompatibleChains?.filter((config) => !deployedChainIds.includes(config.chainId)) || []
const replayableChains = useMemo(
() => allCompatibleChains?.filter((config) => !deployedChainIds.includes(config.chainId)) || [],
[allCompatibleChains, deployedChainIds],
)

return (
<ReplaySafeDialog
Expand Down

0 comments on commit ef06e9a

Please sign in to comment.