From d767e6af75606fb96f53ec54e6a986ed1b739b93 Mon Sep 17 00:00:00 2001 From: Paul Sauve Date: Thu, 12 Jan 2017 21:39:32 -0600 Subject: [PATCH] Fix same issue but in SSR code --- src/generators/server-side-rendering/visitors/Component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/server-side-rendering/visitors/Component.js b/src/generators/server-side-rendering/visitors/Component.js index 295a14a7c4da..55a7a1139985 100644 --- a/src/generators/server-side-rendering/visitors/Component.js +++ b/src/generators/server-side-rendering/visitors/Component.js @@ -21,7 +21,7 @@ export default { } else if ( attribute.value.length === 1 ) { const chunk = attribute.value[0]; if ( chunk.type === 'Text' ) { - value = isNaN( parseFloat( chunk.data ) ) ? JSON.stringify( chunk.data ) : chunk.data; + value = isNaN( chunk.data ) ? JSON.stringify( chunk.data ) : chunk.data; } else { const { snippet } = generator.contextualise( chunk.expression ); value = snippet;