Skip to content

Commit

Permalink
update match count on new match
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsamaaa committed Apr 20, 2024
1 parent 8cf21bc commit b62c221
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/browse/match-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
profilePassionMatchListReset,
getProfilePassionMatchList,
createMatchRecord,
getAllMatches,
} from '@/redux/features/matchSlice';
import { Profile } from '@/models/profile';
import {
Expand Down Expand Up @@ -124,6 +125,12 @@ const MatchCard = () => {
toast.success('You got a match! 🎉', {
duration: 2000,
});
dispatch(
getAllMatches({
controller,
profileId: sessionProfile.profileId,
})
);
dispatch(matchReset());
}
}
Expand Down

0 comments on commit b62c221

Please sign in to comment.