Skip to content

Commit

Permalink
fix: buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio La Barbera committed Sep 11, 2024
1 parent 80f2f62 commit 9196341
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@ const viewTransaction = () => {
}
const incrementAmount = () => {
amount.value += 0.1;
if(amount.value + 0.1 <= max_bet) {
amount.value += 0.1;
}
}
const decrementAmount = () => {
amount.value -= 0.1;
if(amount.value - 0.1 >= min_bet) {
amount.value -= 0.1;
}
}
onMounted(async () => {
Expand Down

0 comments on commit 9196341

Please sign in to comment.