diff --git a/pkg/interface/src/views/landscape/components/GroupSettings/Personal.tsx b/pkg/interface/src/views/landscape/components/GroupSettings/Personal.tsx index 9b036ec45a..7d4838d2ab 100644 --- a/pkg/interface/src/views/landscape/components/GroupSettings/Personal.tsx +++ b/pkg/interface/src/views/landscape/components/GroupSettings/Personal.tsx @@ -34,10 +34,12 @@ function DeleteGroup(props: { const history = useHistory(); const onDelete = async () => { const name = props.association['group-path'].split('/').pop(); - if (prompt(`To confirm deleting this group, type ${name}`) === name) { - await props.api.contacts.delete(props.association["group-path"]); - history.push("/"); + if (props.owner) { + const shouldDelete = (prompt(`To confirm deleting this group, type ${name}`) === name); + if (!shouldDelete) return; } + await props.api.contacts.delete(props.association["group-path"]); + history.push("/"); }; const action = props.owner ? "Delete" : "Leave";