Skip to content

Commit

Permalink
Merge pull request #28680 from hungvu193/fix-27568
Browse files Browse the repository at this point in the history
Disable flash when there is no permission granted
  • Loading branch information
puneetlath authored Oct 5, 2023
2 parents f9b4b3c + 0674f76 commit 7f7b424
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/iou/ReceiptSelector/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ function ReceiptSelector({route, report, iou, transactionID, isInTabNavigator})
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={translate('receipt.flash')}
style={[styles.alignItemsEnd]}
disabled={permissions !== RESULTS.GRANTED}
onPress={() => setFlash((prevFlash) => !prevFlash)}
>
<Icon
Expand Down

0 comments on commit 7f7b424

Please sign in to comment.