Skip to content

Commit

Permalink
mode ? mode : this.device.data.mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tsightler committed Jul 3, 2023
1 parent 9d9f088 commit 1454719
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions devices/security-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ export default class SecurityPanel extends RingSocketDevice {
}

// If mode was passed to the function use it, oterwise use currently active device mode
mode = mode ? mode : this.device.data.mode
switch (mode) {
switch (mode ? mode : this.device.data.mode) {
case 'none':
return 'disarmed'
case 'some':
Expand Down

0 comments on commit 1454719

Please sign in to comment.