fix: thai address text spacing

This commit is contained in:
Thanaphon Frappet 2024-11-14 10:37:17 +07:00
parent 9667c39040
commit de97a348e7

View file

@ -31,8 +31,8 @@ export function formatAddress(opt: {
// th
addressParts = [`${opt.address},`];
if (opt.moo) addressParts.push(`หมู่ ${opt.moo},`);
if (opt.soi) addressParts.push(`ซอย ${opt.soi},`);
if (opt.street) addressParts.push(`ถนน ${opt.street},`);
if (opt.soi) addressParts.push(`ซอย${opt.soi},`);
if (opt.street) addressParts.push(`ถนน${opt.street},`);
addressParts.push(
`${opt.province.id === '10' ? 'แขวง' : 'ตำบล'}${opt.subDistrict.name},`,