diff --git a/app/soapbox/queries/suggestions.ts b/app/soapbox/queries/suggestions.ts index b6cea5278c..b9455376a8 100644 --- a/app/soapbox/queries/suggestions.ts +++ b/app/soapbox/queries/suggestions.ts @@ -123,7 +123,7 @@ const useDismissSuggestion = () => { return useMutation((accountId: string) => api.delete(`/api/v1/suggestions/${accountId}`), { onMutate(accountId: string) { - removePageItem(SuggestionKeys.suggestions, accountId, (o: any, n: any) => o.account_id === n); + removePageItem(SuggestionKeys.suggestions, accountId, (o: any, n: any) => o.account === n); }, }); };