We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c762924 commit 3703f32Copy full SHA for 3703f32
packages/mjml-table/src/index.js
@@ -74,7 +74,7 @@ export default class MjTable extends BodyComponent {
74
hasCellspacing() {
75
const cellspacing = this.getAttribute('cellspacing')
76
const numericValue = parseFloat(String(cellspacing).replace(/[^\d.]/g, ''))
77
- return numericValue > 0 && typeof cellspacing !== 'undefined'
+ return !Number.isNaN(numericValue) && numericValue > 0
78
}
79
80
render() {
0 commit comments