Skip to content

Commit

Permalink
chore: tidy up if statement
Browse files Browse the repository at this point in the history
Signed-off-by: Stef3st <[email protected]>
  • Loading branch information
Stef3st committed Jan 11, 2024
1 parent 58846f0 commit 69c6fe4
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,13 @@ export function createAddressesWizard(
`wizard-select[label="${counterType}"]`
) as WizardSelect;

if (isMonitor)
availableTis.maybeValue = selectedTi === '30' ? '58' : '62';
else availableTis.maybeValue = selectedTi === '58' ? '30' : '35';
availableTis.maybeValue = isMonitor
? selectedTi === '30'
? '58'
: '62'
: selectedTi === '58'
? '30'
: '35';
}

// Add the basic fields to the list.
Expand Down

0 comments on commit 69c6fe4

Please sign in to comment.