From 4a7956782b7885d00950e43244b4cbd0332be6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 2 Mar 2018 15:42:29 +0000 Subject: [PATCH] fix(instances): send the correct userscript to deploy --- .../my-joy-instances/src/containers/create-instance/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/my-joy-instances/src/containers/create-instance/index.js b/packages/my-joy-instances/src/containers/create-instance/index.js index 908920ba..d6e4193c 100644 --- a/packages/my-joy-instances/src/containers/create-instance/index.js +++ b/packages/my-joy-instances/src/containers/create-instance/index.js @@ -344,8 +344,8 @@ export default compose( network => networks[network] ); - if (userScript && userScript.value) { - _metadata.push({ name: 'user-script', value: userScript.value }); + if (userScript && userScript.length) { + _metadata.push({ name: 'user-script', value: userScript }); } const [err, res] = await intercept(