Skip to content

Commit

Permalink
fix: populate address from URL in load Safe flow (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook authored Aug 31, 2023
1 parent 2fd728b commit d8b03c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/new-safe/load/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export const LoadSafeSteps: TxStepperProps<LoadSafeFormData>['steps'] = [
{
title: 'Name, address & network',
subtitle: 'Paste the address of the Safe Account you want to add, select the network and choose a name.',
render: (_, onSubmit, onBack, setStep) => (
<SetAddressStep onSubmit={onSubmit} onBack={onBack} data={_} setStep={setStep} />
render: (data, onSubmit, onBack, setStep) => (
<SetAddressStep onSubmit={onSubmit} onBack={onBack} data={data} setStep={setStep} />
),
},
{
Expand Down Expand Up @@ -61,6 +61,8 @@ const LoadSafe = ({ initialData }: { initialData?: TxStepperProps<LoadSafeFormDa
</Grid>
<Grid item xs={12} md={10} lg={8} order={[1, null, 0]}>
<CardStepper
// Populate initial data
key={initialSafe.address}
initialData={initialSafe}
onClose={onClose}
steps={LoadSafeSteps}
Expand Down

0 comments on commit d8b03c2

Please sign in to comment.