Skip to content

Commit 9b3d821

Browse files
authored
Merge pull request #3003 from entrylabs/develop
fix: operator 처리 로직 수정
2 parents 215fa83 + 0fc6975 commit 9b3d821

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/playground/blocks/block_calc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,14 +761,14 @@ module.exports = {
761761
throw new Error('x range exceeded');
762762
}
763763

764-
if (operator.indexOf('_')) {
765-
operator = operator.split('_')[0];
766-
}
767-
768764
if (!calcOperationOptions.some((option) => option[1] === operator)) {
769765
operator = 'round';
770766
}
771767

768+
if (operator.indexOf('_')) {
769+
operator = operator.split('_')[0];
770+
}
771+
772772
let returnVal = 0;
773773
switch (operator) {
774774
case 'square':

0 commit comments

Comments
 (0)