Skip to content

Commit

Permalink
fix: changed comments [WTEL-4505]
Browse files Browse the repository at this point in the history
  • Loading branch information
lizacoma committed May 14, 2024
1 parent b15a776 commit 9cf774c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const emit = defineEmits([
]);
function updateQuestion({ path, value }) {
const score = value.score > 10 ? 10 : Number(Math.abs(value.score)); // for trying to enter -1, 000 or string value
const score = value.score > 10 ? 10 : Number(Math.abs(value.score)); // to prevent -1, 000 or string value
emit('change:question', updateObject({
obj: props.question,
path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const scoreRange = computed(() => {
const isResult = computed(() => !isEmpty(props.result));
function updateQuestion({ path, value }) {
const number = value > 10 ? 10 : Number(Math.abs(value)); // for trying to enter -1, 000 or string value
const number = value > 10 ? 10 : Number(Math.abs(value)); // to prevent -1, 000 or string value
emit('change:question', updateObject({ obj: props.question, path, value: number }));
}
Expand Down

0 comments on commit 9cf774c

Please sign in to comment.