Skip to content

Commit

Permalink
Reset first step tally on clear
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter authored Nov 4, 2024
1 parent cb6758d commit 5a4f014
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/scoring/[email protected]/Presentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ const addMark: typeof _addMark = async (mark) => {
simpleTally.value = mr.value.tally
}
function onClear () {
mr.value = createMarkReducer(simpleReducer)
simpleTally.value = mr.value.tally
}
defineExpose({ onClear })
const weights = {
ent: 0.25,
form: 0.25,
Expand Down

0 comments on commit 5a4f014

Please sign in to comment.