diff --git a/ui/round.js b/ui/round.js index d7869dc..d1e9da4 100644 --- a/ui/round.js +++ b/ui/round.js @@ -25,8 +25,10 @@ export default class RoundView { ), m("button.wb-button.theywin._positioned", { - onclick: () => { + onclick: (event) => { + event.redraw = false; model.winner = Team.They; + m.redraw.sync(); window.scrollTo({ top: document.body.scrollHeight, behavior: "smooth", @@ -38,8 +40,10 @@ export default class RoundView { ), m("button.wb-button.wewin._positioned", { - onclick: () => { + onclick: (event) => { + event.redraw = false; model.winner = Team.We; + m.redraw.sync(); window.scrollTo({ top: document.body.scrollHeight, behavior: "smooth", diff --git a/ui/session.js b/ui/session.js index f3515db..c5073d0 100644 --- a/ui/session.js +++ b/ui/session.js @@ -62,8 +62,10 @@ export default class SessionView { : m( "button.wb-button._positioned", { - onclick: () => { + onclick: (event) => { + event.redraw = false; model.anotherGame(); + m.redraw.sync(); window.scrollTo({ top: document.body.scrollHeight, behavior: "smooth",