Skip to content

Commit

Permalink
fix: remove zipcode slash logic and consulting type check
Browse files Browse the repository at this point in the history
  • Loading branch information
janrembold committed Apr 22, 2024
1 parent e5d9875 commit ed0cadf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/sessionsListItem/SessionListItemComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,6 @@ export const SessionListItemComponent = ({
sessionTopic = activeSession.user.username;
}

const showConsultingType =
consultingType && !tenantData?.settings?.featureTopicsEnabled;
const zipCodeSlash = showConsultingType ? '/ ' : '';

return (
<div
onClick={handleOnClick}
Expand Down Expand Up @@ -383,11 +379,10 @@ export const SessionListItemComponent = ({
</div>
) : (
<div className="sessionsListItem__consultingType">
{activeSession.item.consultingType !== 1 &&
!isAsker &&
{!isAsker &&
!activeSession.isLive &&
!autoSelectPostcode
? zipCodeSlash + activeSession.item.postcode
? activeSession.item.postcode
: null}
</div>
)}
Expand Down

0 comments on commit ed0cadf

Please sign in to comment.