Release: Quarkus backend, Keycloak login, game history, clock, bot, tutorial and rematch #3
@ -182,12 +182,13 @@ const GamePage: FunctionComponent<{
|
||||
swal({
|
||||
title: t("AreYouSureToLeaveGame"),
|
||||
icon: "warning",
|
||||
buttons: [t("Yes"), t("Cancel")],
|
||||
buttons: [t("Cancel"), t("Yes")],
|
||||
dangerMode: true,
|
||||
})
|
||||
.then((cancel) => {
|
||||
if (!cancel) {
|
||||
.then((confirm) => {
|
||||
if (confirm) {
|
||||
context.rtmt.sendMessage(channel_leave_game, {});
|
||||
navigate("/");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user