緊急地震速報にも反映→v3.5.3

This commit is contained in:
2025-07-02 16:49:06 +09:00
parent 7c7dfdcf3c
commit 88bd2e88a5
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -178,12 +178,11 @@ async function event(earthquakeInfo: any): Promise<void> {
if (earthquakeInfo.areas !== null) {
const areaNames: Array<string> = Array.from(
new Set(
earthquakeInfo.areas.map((i: any) => {
earthquakeInfo.areas[i].name;
}),
earthquakeInfo.areas
.map((point: any) => point.name)
.filter(Boolean)
),
);
areas = `対象地域:${areaNames.join("・")}`;
}