Printing the first line of a binary expression next to the `=` leads to weird cases where the first expression is parenthesised and doens't read well with chained conditionals as they don't align well. This makes it behave the same was as `if` tests. Fixes #863
10 lines
260 B
JavaScript
10 lines
260 B
JavaScript
const computedDescriptionLines = (showConfirm &&
|
|
descriptionLinesConfirming) ||
|
|
(focused && !loading && descriptionLinesFocused) ||
|
|
descriptionLines;
|
|
|
|
computedDescriptionLines = (focused &&
|
|
!loading &&
|
|
descriptionLinesFocused) ||
|
|
descriptionLines;
|