Skip to content

Commit 14ac7c2

Browse files
committed
✨ feat: Ignore unknown station when mmi_event
1 parent 45eaddb commit 14ac7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class PEWSClient {
116116
const mmi = mmiObj[i] > 11 ? 1 : mmiObj[i]
117117
this.staList[i].mmi = mmi
118118

119-
if (mmi >= 2) {
119+
if (mmi >= 2 && this.staList[i].info?.name !== undefined) {
120120
mmiEventArr.push(this.staList[i])
121121
}
122122
}

0 commit comments

Comments
 (0)