Skip to content

Commit

Permalink
remove duplicate spillway logic check
Browse files Browse the repository at this point in the history
  • Loading branch information
tagyoureit committed Jun 22, 2024
1 parent 88c4019 commit 9a7d79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/boards/SystemBoard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4613,7 +4613,7 @@ export class ValveCommands extends BoardCommands {
typeof state.features.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spadrain' && elem.isOn === true) !== 'undefined' : false;
// Check to see if there is a spillway circuit or feature on. If it is on then the return will be diverted no mater what.
let spillway = sys.equipment.shared ?
typeof state.circuits.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' ||
// typeof state.circuits.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' ||
typeof state.features.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' : false;
let spa = sys.equipment.shared ? state.circuits.getItemById(1).isOn : false;
let pool = sys.equipment.shared ? state.circuits.getItemById(6).isOn : false;
Expand Down

0 comments on commit 9a7d79f

Please sign in to comment.