Skip to content

Commit a618f19

Browse files
committed
Add toast notification on match confirmation
1 parent a524a9d commit a618f19

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/contexts/FindMatchContext.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,14 @@ export function FindMatchProvider({
188188

189189
const onMatchConfirmed = useCallback(
190190
({ message, sessionId }: { message: string; sessionId: string }) => {
191+
toast({
192+
title: "Match Confirmed",
193+
description: `You should be redirected to /${sessionId}`,
194+
});
191195
console.log("Redirect to:", sessionId, message);
192196
reset();
193197
},
194-
[]
198+
[toast]
195199
);
196200

197201
const handleError = useCallback(

0 commit comments

Comments
 (0)