Merge pull request #228 from Frappet/fix/registry

fix:display prefix
This commit is contained in:
Warunee Tamkoo 2025-10-16 09:43:04 +07:00 committed by GitHub
commit bdfef9c31d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,7 +183,7 @@ async function getData(type: string) {
checkFatherData.value = data ? true : false; checkFatherData.value = data ? true : false;
fatherData.isLive = data.fatherLive; fatherData.isLive = data.fatherLive;
fatherData.citizenId = data.fatherCitizenId; fatherData.citizenId = data.fatherCitizenId;
fatherData.prefix = data.fatherPrefix; fatherData.prefix = data.fatherPrefix ? data.fatherPrefix : "";
fatherData.firstName = data.fatherFirstName; fatherData.firstName = data.fatherFirstName;
fatherData.lastName = data.fatherLastName; fatherData.lastName = data.fatherLastName;
fatherData.job = data.fatherCareer; fatherData.job = data.fatherCareer;
@ -192,7 +192,7 @@ async function getData(type: string) {
checkMotherData.value = data ? true : false; checkMotherData.value = data ? true : false;
motherData.isLive = data.motherLive; motherData.isLive = data.motherLive;
motherData.citizenId = data.motherCitizenId; motherData.citizenId = data.motherCitizenId;
motherData.prefix = data.motherPrefix; motherData.prefix = data.motherPrefix ? data.motherPrefix : "";
motherData.firstName = data.motherFirstName; motherData.firstName = data.motherFirstName;
motherData.lastName = data.motherLastName; motherData.lastName = data.motherLastName;
motherData.job = data.motherCareer; motherData.job = data.motherCareer;
@ -201,7 +201,7 @@ async function getData(type: string) {
checkCoupleData.value = data ? true : false; checkCoupleData.value = data ? true : false;
coupleData.isLive = data.coupleLive; coupleData.isLive = data.coupleLive;
coupleData.citizenId = data.coupleCitizenId; coupleData.citizenId = data.coupleCitizenId;
coupleData.prefix = data.couplePrefix; coupleData.prefix = data.couplePrefix ? data.couplePrefix : "";
coupleData.firstName = data.coupleFirstName; coupleData.firstName = data.coupleFirstName;
coupleData.lastName = data.coupleLastName; coupleData.lastName = data.coupleLastName;
coupleData.job = data.coupleCareer; coupleData.job = data.coupleCareer;