Skip to content

Commit

Permalink
fix disabled issue
Browse files Browse the repository at this point in the history
  • Loading branch information
avivbarniv committed Jan 9, 2024
1 parent b44dd40 commit c8777d6
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ const ServiceCard = ({ service, withBorder }) => {
activeOpacity={!withBorder ? 1 : 0.5}
noBackground
onPress={() => {
if (withBorder) {
if (isSelected) {
return setPopup(FARE_POPUP);
if (!unavailable) {
if (withBorder) {
if (isSelected) {
return setPopup(FARE_POPUP);
}
setChosenService(service);
}
setChosenService(service);
}
}}
>
Expand Down

0 comments on commit c8777d6

Please sign in to comment.