diff --git a/src/views/Profile.tsx b/src/views/Profile.tsx index 73c3212..9def5f9 100644 --- a/src/views/Profile.tsx +++ b/src/views/Profile.tsx @@ -206,6 +206,9 @@ function ProfileEventCard({ registration }: { registration: Types.MyEventRegistr const imageUrl = toAbsoluteUrl(event.absolute_image_url, apiBaseUrl) || "/placeholder.svg"; const eventPath = getEventPath(event); const registrationHubUrl = `${eventPath}/registration?registration_id=${encodeURIComponent(registration.ticket_id)}`; + const canContinueRegistration = registration.status === "pending" + && registration.checkout_state === "active" + && registration.can_resume; return (
@@ -217,21 +220,26 @@ function ProfileEventCard({ registration }: { registration: Types.MyEventRegistr
- - {event.title} - -
- {eventStatusLabels[registration.status]} - {formatJalali(event.start_date, false)} +
+ + {event.title} + + + {eventStatusLabels[registration.status]} +
- {registration.checkout_state === "active" && registration.can_resume ? ( - ) : registration.checkout_state === "unresolved" ? ( - + + پیگیری پرداخت قبلی + ) : null}