Skip to content

Commit

Permalink
bug(DiceTool): Ignore 'GO' button if no input was given
Browse files Browse the repository at this point in the history
  • Loading branch information
SuikaXhq authored Nov 7, 2023
1 parent f21b131 commit ec54617
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tech changes will usually be stripped from release notes for the public

- Polygon edit UI: was not taking rotation of shape into account
- Teleport: shapes would not be removed on the old location until a refresh
- Dice tool: would not send zero results when dice list is empty

## [2023.3.0] - 2023-09-17

Expand Down
3 changes: 3 additions & 0 deletions client/src/game/ui/tools/DiceTool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ async function reroll(roll: string): Promise<void> {
}
async function go(): Promise<void> {
if (diceArray.value.length === 0) {
return;
}
clearTimeout(timeout);
button.value?.classList.remove("transition");
const roll = diceText.value;
Expand Down

0 comments on commit ec54617

Please sign in to comment.