Skip to content

Commit

Permalink
fix: disabled accessibility pay with bonus check box (#5060)
Browse files Browse the repository at this point in the history
* fix: disabled accessibility pay with bonus check box

* rename variable

* fix: remove onAccessibilityTap
  • Loading branch information
jorunnl authored Mar 5, 2025
1 parent 4f6d467 commit c31600f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/mobility/components/BikeStationBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ export const BikeStationBottomSheet = ({
bonusProduct={bonusProduct}
isChecked={payWithBonusPoints}
onPress={() =>
setPayWithBonusPoints((useBonusPoints) => !useBonusPoints)
setPayWithBonusPoints(
(payWithBonusPoints) => !payWithBonusPoints,
)
}
style={styles.useBonusPointsSection}
/>
Expand Down
1 change: 0 additions & 1 deletion src/mobility/components/PayWithBonusPointsCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export const PayWithBonusPointsCheckbox = ({
<GenericClickableSectionItem
active={isChecked}
onPress={onPress}
onAccessibilityTap={onPress}
disabled={disabled}
accessibilityRole="checkbox"
accessibilityState={{checked: isChecked}}
Expand Down

0 comments on commit c31600f

Please sign in to comment.