Skip to content

Commit 1d1275f

Browse files
authored
Update index.html
Calculator condition
1 parent 854b14c commit 1d1275f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3284,7 +3284,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
32843284
const length = parseFloat(document.getElementById('segment-length').value);
32853285
const height = parseFloat(document.getElementById('segment-height').value);
32863286

3287-
if (isNaN(length) || isNaN(height) || height === 0) {
3287+
if (isNaN(length) || isNaN(height) || height === 0 || length === 0) {
32883288
document.getElementById('segment-area').innerText = '';
32893289
return;
32903290
}

0 commit comments

Comments
 (0)