Skip to content

Commit cac116a

Browse files
committed
carrier: Enhance null handling in TrackEvent.description for kr.epost.ems
1 parent c4a4f07 commit cac116a

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/carriers/kr.epost.ems

1 file changed

+1
-1
lines changed

packages/core/src/carriers/kr.epost.ems/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class KoreaPostEMSTrackScraper {
8181
const status = tds[1].textContent?.replace(/\s+/g, " ")?.trim() ?? null;
8282
const location = tds[2].textContent?.replace(/\s+/g, " ")?.trim() ?? null;
8383
let description = tds[3].textContent?.replace(/\s+/g, " ")?.trim() ?? null;
84-
if (description === "") {
84+
if (description === "" || description === null) {
8585
description = `${status ?? ""} - ${location ?? ""}`;
8686
}
8787

0 commit comments

Comments
 (0)