Fix magic not always working

This commit is contained in:
j433866 2019-05-03 11:49:14 +01:00
parent e9d60f73f4
commit df20196201

View File

@ -51,10 +51,10 @@ class OutputWaiter {
if (this.outputs[inputNum].data === null) return "";
if (typeof this.outputs[inputNum].data.dish.value === "string") {
return this.outputs[inputNum].data.dish.value;
if (typeof this.outputs[inputNum].data.result === "string") {
return this.outputs[inputNum].data.result;
} else {
return this.outputs[inputNum].data.dish.value || "";
return this.outputs[inputNum].data.result || "";
}
}