Skip to content

Commit

Permalink
feat(intg): prefix with space before appending
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 20, 2022
1 parent d6ffe08 commit 345e52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CalculatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const valueToDisplay = ref("0")
const isDisplayEmpty = computed(() => valueToDisplay.value === "0")
function appendToScreen(valueToAppend: number | string) {
if (isDisplayEmpty.value) valueToDisplay.value = String(valueToAppend)
else valueToDisplay.value += String(valueToAppend)
else valueToDisplay.value += ` ${valueToAppend}`
}
</script>

Expand Down

0 comments on commit 345e52b

Please sign in to comment.