Fix field name so follow suggestion is successfully removed

This commit is contained in:
oakes 2023-06-20 20:25:15 -04:00
parent d5b3853afc
commit fdd20981e3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
},
});
};