Skip to content

Commit

Permalink
refactor(intg): cast to string when evaluating
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 22, 2022
1 parent 5f09ecb commit 1c865d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/CalculatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ function appendToEvaluationScreen(valueToAppend: PossibleButtonValues) {
// Evaluated data and mutators
const evaluatedValue = ref("0")
function evaluateExpression(valueToAppend: PossibleButtonValues) {
evaluatedValue.value = evaluate(`${evaluationValue.value} ${entryValue.value}`)
evaluatedValue.value = String(evaluate(`${evaluationValue.value} ${entryValue.value}`))
appendToEvaluationScreen(valueToAppend)
entryValue.value = String(evaluatedValue.value)
entryValue.value = evaluatedValue.value
}
</script>

Expand Down

0 comments on commit 1c865d9

Please sign in to comment.