Skip to content

Commit

Permalink
Merge pull request #14502 from Expensify/cmartins-fixSelected
Browse files Browse the repository at this point in the history
Do not select participant in IOU confirmation list
  • Loading branch information
luacmartins authored Feb 1, 2023
2 parents ae930fb + 66bc3f8 commit c5e3d0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/OptionsList/BaseOptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,20 @@ class BaseOptionsList extends Component {
* @return {Component}
*/
renderItem({item, index, section}) {
const isDisabled = this.props.isDisabled || section.isDisabled;
return (
<OptionRow
option={item}
showTitleTooltip={this.props.showTitleTooltip}
hoverStyle={this.props.optionHoveredStyle}
optionIsFocused={!this.props.disableFocusOptions
&& !isDisabled
&& this.props.focusedIndex === (index + section.indexOffset)}
onSelectRow={this.props.onSelectRow}
isSelected={Boolean(_.find(this.props.selectedOptions, option => option.login === item.login))}
showSelectedState={this.props.canSelectMultipleOptions}
boldStyle={this.props.boldStyle}
isDisabled={this.props.isDisabled || section.isDisabled}
isDisabled={isDisabled}
shouldHaveOptionSeparator={index > 0 && this.props.shouldHaveOptionSeparator}
/>
);
Expand Down

0 comments on commit c5e3d0b

Please sign in to comment.