Skip to content

Commit 3703f32

Browse files
committed
fix(mjml-table): updated return for numericValue #2995
fixes #2995
1 parent c762924 commit 3703f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mjml-table/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class MjTable extends BodyComponent {
7474
hasCellspacing() {
7575
const cellspacing = this.getAttribute('cellspacing')
7676
const numericValue = parseFloat(String(cellspacing).replace(/[^\d.]/g, ''))
77-
return numericValue > 0 && typeof cellspacing !== 'undefined'
77+
return !Number.isNaN(numericValue) && numericValue > 0
7878
}
7979

8080
render() {

0 commit comments

Comments
 (0)