diff --git a/index.html b/index.html index 28fcd50..1064c4e 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ Immutable DevTools Demo - + diff --git a/src/createFormatters.js b/src/createFormatters.js index 293138d..0eb82fe 100644 --- a/src/createFormatters.js +++ b/src/createFormatters.js @@ -34,7 +34,7 @@ export default function createFormatter(Immutable) { const reference = (object, config) => { if (typeof object === 'undefined') return ['span', nullStyle, 'undefined']; - else if (object === 'null') + else if (object === null) return ['span', nullStyle, 'null']; return ['object', {object, config}];