Skip to content

Commit

Permalink
fix comparison whoopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Oct 28, 2024
1 parent ac09a7a commit 36fd632
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 36fd632

Please sign in to comment.