Skip to content

Commit

Permalink
feat(intg): evaluate formed expression
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 20, 2022
1 parent ae33d51 commit d5a227b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CalculatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ function appendToScreen(valueToAppend: PossibleButtonValues) {
}
function evaluateExpression(valueToAppend: PossibleButtonValues) {
const evaluatedValue = evaluate(valueToDisplay.value)
appendToScreen(valueToAppend)
return
return evaluatedValue
}
</script>

Expand Down

0 comments on commit d5a227b

Please sign in to comment.