diff --git a/frontend/web/components/pages/UserPage.tsx b/frontend/web/components/pages/UserPage.tsx index f7bbbc300434..0b8b2eae9025 100644 --- a/frontend/web/components/pages/UserPage.tsx +++ b/frontend/web/components/pages/UserPage.tsx @@ -304,7 +304,7 @@ const UserPage: FC = (props) => { ) } - const removeTrait = (id: string, trait_key: string) => { + const removeTrait = (traitId: string, trait_key: string) => { openConfirm({ body: (
@@ -317,7 +317,7 @@ const UserPage: FC = (props) => { ), destructive: true, onYes: () => - AppActions.deleteIdentityTrait(environmentId, id, id || trait_key), + AppActions.deleteIdentityTrait(environmentId, id, traitId || trait_key), title: 'Delete Trait', yesText: 'Confirm', })