diff --git a/source/content-scripts/features/user-labels.tsx b/source/content-scripts/features/user-labels.tsx index 82e9086..cec541c 100644 --- a/source/content-scripts/features/user-labels.tsx +++ b/source/content-scripts/features/user-labels.tsx @@ -259,7 +259,7 @@ export class UserLabelsFeature extends Component { this.addLabelsToUsernames(querySelectorAll(".link-user"), newId); } else { const index = userLabels.findIndex(({value}) => value.id === id); - userLabels.splice(index, 1); + await userLabels.splice(index, 1)[0].remove(); userLabels.push( await createValueUserLabel({ id,