Skip to content

Commit

Permalink
fix: remove trait (#4686)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Oct 2, 2024
1 parent d18049b commit 6dc8b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/web/components/pages/UserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const UserPage: FC<UserPageType> = (props) => {
)
}

const removeTrait = (id: string, trait_key: string) => {
const removeTrait = (traitId: string, trait_key: string) => {
openConfirm({
body: (
<div>
Expand All @@ -317,7 +317,7 @@ const UserPage: FC<UserPageType> = (props) => {
),
destructive: true,
onYes: () =>
AppActions.deleteIdentityTrait(environmentId, id, id || trait_key),
AppActions.deleteIdentityTrait(environmentId, id, traitId || trait_key),
title: 'Delete Trait',
yesText: 'Confirm',
})
Expand Down

0 comments on commit 6dc8b7b

Please sign in to comment.