Skip to content

Commit 8413642

Browse files
committed
fix(transform): add cwasis text color
1 parent a9abd6c commit 8413642

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sesnaquake",
33
"private": true,
4-
"version": "0.2.1-rc.1+build.2",
4+
"version": "0.2.1-rc.1+build.3",
55
"type": "module",
66
"main": "dist-electron/main.js",
77
"scripts": {

src/ts/utils/panel.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ export const changeEvent = (title: string, reportNumber: number, intensity: numb
5555
eventPanelReportValue.textContent = `#${reportNumber}`;
5656
eventPanelLocation.textContent = location;
5757

58-
// Show the agency-provided name immediately, swap in the localized one
59-
// when it resolves — unless the panel has moved on to another event
6058
const token = ++locationToken;
6159
localizeLocation(lat, lon, location, agency).then(name => {
6260
if (token === locationToken && eventPanelLocation) eventPanelLocation.textContent = name;

src/ts/utils/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const getColor = (intensity: number, intensityType: string) => {
8686
};
8787

8888
export const getTextColor = (intensity: number, intensityType: string) => {
89-
if (intensityType == "shindo") {
89+
if (intensityType == "shindo" || intensityType == "cwasis") {
9090
return getTextColorShindo(intensity);
9191
} else if (intensityType == "mmi" || intensityType == "csis") {
9292
return getTextColorMmi(intensity);

0 commit comments

Comments
 (0)