fix(membre): fix null licence number case
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m10s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m10s
This commit is contained in:
parent
d5a0b8f554
commit
4bcb72ebec
@ -23,7 +23,7 @@ public class MembreEntity {
|
||||
private Categorie categorie;
|
||||
private ClubEntity club;
|
||||
private Genre genre;
|
||||
private int licence;
|
||||
private Integer licence;
|
||||
private String country;
|
||||
private Date birth_date;
|
||||
private String email;
|
||||
|
||||
@ -34,7 +34,7 @@ public class SimpleMembre {
|
||||
@Schema(description = "Le genre du membre.", example = "H")
|
||||
private Genre genre;
|
||||
@Schema(description = "Le numéro de licence du membre.", example = "12345")
|
||||
private int licence;
|
||||
private Integer licence;
|
||||
@Schema(description = "Le pays du membre.", example = "FR")
|
||||
private String country;
|
||||
@Schema(description = "La date de naissance du membre.")
|
||||
|
||||
@ -139,7 +139,7 @@ function MakeCentralPanel({data, visibleMember, navigate, showLicenceState, page
|
||||
function MakeRow({member, showLicenceState, navigate, source}) {
|
||||
const rowContent = <>
|
||||
<div className="row">
|
||||
<span className="col-auto">{String(member.licence_number).padStart(5, '0')}</span>
|
||||
<span className="col-auto">{member.licence_number ? String(member.licence_number).padStart(5, '0') : "-------"}</span>
|
||||
<div className="ms-2 col-auto">
|
||||
<div className="fw-bold">{member.fname} {member.lname}</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user