/**
 * The trainer request's `holder_mismatch` is recomputed live from the two names
 * (`TrainerRequestController`), so it stays `true` after the administration has
 * approved a mismatching holder. Once the review status is `approved` there is
 * nothing left to review, so the «under manual review» notice must not show.
 */
export function pendingHolderMismatch(status: string | null | undefined, mismatch: boolean | null | undefined): boolean | null | undefined {
  return status === "approved" ? false : mismatch;
}
