diff --git a/js/client-mainmenu.js b/js/client-mainmenu.js index 399495390..17d46f6e8 100644 --- a/js/client-mainmenu.js +++ b/js/client-mainmenu.js @@ -282,7 +282,7 @@ if (app.user.teams[teamIndex]) team = app.user.teams[teamIndex].team; $(target).closest('.challenge').remove(); - if (team) app.send('/saveteam '+$.toJSON(team)); + if (team) app.send('/utm '+$.toJSON(team)); app.send('/accept '+userid); }, rejectChallenge: function(i, target) { @@ -305,7 +305,7 @@ buf += '

'; $(target).closest('.challenge').html(buf); - if (team) app.send('/saveteam '+$.toJSON(team)); + if (team) app.send('/utm '+$.toJSON(team)); app.send('/challenge '+userid+', '+format); }, cancelChallenge: function(i, target) {