We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef201e6 commit b77c741Copy full SHA for b77c741
frontend/src/components/MatchingService/MatchingForm.tsx
@@ -125,8 +125,11 @@ const MatchingForm = React.forwardRef(function MatchingForm() {
125
const matchedUser = matchedUserPreferences.matchedUserPreferences;
126
setIsMatching(false);
127
const qId = await getQuestions(seed);
128
- const hashedEmailOne = sha256(userEmail || "");
129
- const hashedEmailTwo = sha256(matchedUser.userEmail);
+ const emails = [userEmail, matchedUser.userEmail].sort();
+
130
+ // Hash the sorted emails
131
+ const hashedEmailOne = sha256(emails[0]);
132
+ const hashedEmailTwo = sha256(emails[1]);
133
navigate(`/collab/question/${qId}/${hashedEmailOne}/${hashedEmailTwo}`);
134
});
135
0 commit comments