fix(events): bound registration status loading
This commit is contained in:
@@ -371,6 +371,9 @@ export default function EventRegistrationHub({ slug, registrationId, paymentId }
|
||||
};
|
||||
|
||||
const primaryAction: OutcomeAction | undefined = (() => {
|
||||
if (loadState === "error") {
|
||||
return { label: "بررسی دوباره", onClick: refreshNow, disabled: refreshing };
|
||||
}
|
||||
if (!data || !state) return undefined;
|
||||
if (state === "ready" && data.can_register) {
|
||||
return data.event.price > 0
|
||||
|
||||
Reference in New Issue
Block a user