From 36fd6321cbb0a8facf6dc234c970a4b4a189803c Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Mon, 28 Oct 2024 17:06:01 +0100 Subject: [PATCH] fix comparison whoopsie --- .../RegistrationAdministrationList.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationAdministrationList.jsx b/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationAdministrationList.jsx index dea7f47202..d2193323ed 100644 --- a/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationAdministrationList.jsx +++ b/app/webpacker/components/RegistrationsV2/RegistrationAdministration/RegistrationAdministrationList.jsx @@ -17,7 +17,7 @@ import useWithUserData from '../hooks/useWithUserData'; import { bulkUpdateRegistrations } from '../api/registration/patch/update_registration'; import RegistrationAdministrationTable from './RegistrationsAdministrationTable'; import useCheckboxState from '../../../lib/hooks/useCheckboxState'; -import {countries} from "../../../lib/wca-data.js.erb"; +import { countries } from '../../../lib/wca-data.js.erb'; const selectedReducer = (state, action) => { let newState = [...state]; @@ -219,8 +219,8 @@ export default function RegistrationAdministrationList({ competitionInfo }) { - DateTime.fromISO(b.competing.registered_on).toMillis(); case 'paid_on_with_registered_on_fallback': { - const hasAPaid = a.payment?.has_paid === 'succeeded'; - const hasBPaid = b.payment?.has_paid === 'succeeded'; + const hasAPaid = a.payment?.has_paid; + const hasBPaid = b.payment?.has_paid; if (hasAPaid && hasBPaid) { return DateTime.fromISO(a.payment.updated_at).toMillis()