Skip to content

Commit 4f0f8bf

Browse files
authored
EPIC copy + paste fail
1 parent e60d85a commit 4f0f8bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/containers/blocks.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,14 +625,14 @@ class Blocks extends React.Component {
625625
exitFunc("Custom Modal -- Param 2 must be a object with 'width' and 'height' number properties");
626626
}
627627
if (isObject(enterInfo)) {
628-
if (!scale.name || !scale.callback) exitFunc("Custom Modal -- Missing name/callback property in Param 3");
629-
if (scale.callback && typeof scale.callback !== 'function') exitFunc("Custom Modal -- callback property in Param 3 must be a function");
628+
if (!enterInfo.name || !enterInfo.callback) exitFunc("Custom Modal -- Missing name/callback property in Param 3");
629+
if (enterInfo.callback && typeof enterInfo.callback !== 'function') exitFunc("Custom Modal -- callback property in Param 3 must be a function");
630630
} else {
631631
exitFunc("Custom Modal -- Param 3 must be a object with properties: 'name' (string) and 'callback' (function)");
632632
}
633633
if (isObject(closeInfo)) {
634-
if (!scale.name || !scale.callback) exitFunc("Custom Modal -- Missing name/callback property in Param 4");
635-
if (scale.callback && typeof scale.callback !== 'function') exitFunc("Custom Modal -- callback property in Param 4 must be a function");
634+
if (!closeInfo.name || !closeInfo.callback) exitFunc("Custom Modal -- Missing name/callback property in Param 4");
635+
if (closeInfo.callback && typeof closeInfo.callback !== 'function') exitFunc("Custom Modal -- callback property in Param 4 must be a function");
636636
} else {
637637
exitFunc("Custom Modal -- Param 4 must be a object with properties: 'name' (string) and 'callback' (function)");
638638
}

0 commit comments

Comments
 (0)