Skip to content

Commit 35895e7

Browse files
author
Aamod Pisat
committed
parseInt string of version
1 parent e297368 commit 35895e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Connect.prototype.stackInput = function (done) {
446446
})
447447
.then(function (body) {
448448
if (body && body.stack) {
449-
if (body.stack.discrete_variables && body.stack.discrete_variables._version && body.stack.discrete_variables._version >= 3) {
449+
if (body.stack.discrete_variables && body.stack.discrete_variables._version && parseInt(body.stack.discrete_variables._version) !== "NaN" && parseInt(body.stack.discrete_variables._version) >= 3) {
450450
inputs.site_title = body.stack.name.toLowerCase().replace(regexp, '-');
451451
inputs['site_master_language'] = body.stack.master_locale;
452452
console.log('\x1b[33m Done.');

0 commit comments

Comments
 (0)