diff --git a/src/pages/Device.tsx b/src/pages/Device.tsx index ee4ae56..d96a05c 100644 --- a/src/pages/Device.tsx +++ b/src/pages/Device.tsx @@ -131,7 +131,7 @@ export default function DevicePage() { //flip operator and send negative comparitor to save interaction.settings.conditions.forEach(condition => { //coming back from the backend as a string for some reason - if (condition.comparison.toString() === "RELATIONAL_OPERATOR_GREATER_THAN") { + if (condition.comparison === quack.RelationalOperator.RELATIONAL_OPERATOR_GREATER_THAN) { condition.comparison = quack.RelationalOperator.RELATIONAL_OPERATOR_LESS_THAN; } else { condition.comparison = quack.RelationalOperator.RELATIONAL_OPERATOR_GREATER_THAN;