Skip to content

Commit

Permalink
Challenge: Redirecting to a random match URL
Browse files Browse the repository at this point in the history
  • Loading branch information
okbrandon committed Nov 14, 2024
1 parent 840b3cc commit af67e55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ __pycache__/
.DS_Store
.vscode/
certs/*.crt
certs/*.key
certs/*.key
certs_data/
2 changes: 1 addition & 1 deletion frontend/src/components/Chat/tools/DisplayChatMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const DisplayChatMessages = ({ realConvo, userID, messagesEndRef, otherUser }) =
try {
await API.post(`/users/${challengerID}/challenge/${inviteID}/accept`);
addNotification('success', t('chat.invite.inviteAccepted'));
navigate('/game-challenge');
navigate('/game-challenge?inviteID=' + inviteID);
} catch (error) {
console.log(error);
addNotification('error', error?.response?.data?.error || t('chat.invite.errorAccept'));
Expand Down

0 comments on commit af67e55

Please sign in to comment.