Skip to content

Commit

Permalink
Merge pull request #2613 from decentdao/bugfix/add-new-role-not-showing
Browse files Browse the repository at this point in the history
`[Bugfix | No Issue assigned]` Add New Role not linking to form
  • Loading branch information
adamgall authored Dec 10, 2024
2 parents 9bb71ce + 5f38184 commit 711ff13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/dao/roles/edit/details/SafeRoleEditDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export function SafeRoleEditDetailsPage() {
if (hatIndex === undefined) return null;

const role = values.hats[hatIndex];
if (!role) return null;

const goBackToRolesEdit = () => {
backupRoleEditing.current = values.roleEditing;
Expand Down Expand Up @@ -101,7 +100,7 @@ export function SafeRoleEditDetailsPage() {
path: DAO_ROUTES.rolesEdit.relative(addressPrefix, safe.address),
},
{
terminus: role.name ?? t('new'),
terminus: role?.name ?? t('new'),
path: '',
},
]}
Expand Down

0 comments on commit 711ff13

Please sign in to comment.