fix(events): bound registration status loading

This commit is contained in:
2026-10-01 13:35:22 +03:30
parent 57c8da1326
commit 4d17066939
2 changed files with 23 additions and 4 deletions

View File

@@ -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