File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
frontend/src/components/my-tickets-profile-page-handler Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import { MetaTags } from "../meta-tags";
99import { NoTickets } from "./no-tickets" ;
1010import { TicketCard } from "./ticket-card" ;
1111
12+ const VISIBLE_BADGE_PREVIEW_DEADLINES = [
13+ DeadlineStatus . InThePast ,
14+ DeadlineStatus . HappeningNow ,
15+ ] ;
16+
1217export const MyTicketsProfilePageHandler = ( ) => {
1318 const language = useCurrentLanguage ( ) ;
1419 const {
@@ -42,10 +47,9 @@ export const MyTicketsProfilePageHandler = () => {
4247 key = { ticket . id }
4348 ticket = { ticket }
4449 userEmail = { email }
45- showBadgePreview = { [
46- DeadlineStatus . InThePast ,
47- DeadlineStatus . HappeningNow ,
48- ] . includes ( badgePreviewDeadline . status ) }
50+ showBadgePreview = { VISIBLE_BADGE_PREVIEW_DEADLINES . includes (
51+ badgePreviewDeadline . status ,
52+ ) }
4953 />
5054 ) ) }
5155 </ Grid >
You can’t perform that action at this time.
0 commit comments