Skip to content

Commit 2d620ce

Browse files
committed
Fix Divided By Zero
1 parent 2afb8bd commit 2d620ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ calculator.dataset.calculateProcess = "out";
66
keys.forEach((key) => {
77
key.addEventListener("click", () => {
88
if (
9-
display.value === "Invalid input" ||
9+
display.value === "Divided By Zero" ||
1010
display.value === "Overflow" ||
1111
display.value === "Approached Zero"
1212
) {

0 commit comments

Comments
 (0)