Skip to content

Commit

Permalink
remove isMobile
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Oct 16, 2023
1 parent f547551 commit 3334997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/metadata-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ server.get<{ Params: { keyToAssetKey: string } }>(
// HACK: If it has a long key, it's an RSA key, and this is a mobile hotspot.
// In the future, we need to put different symbols on different types of hotspots
const hotspotType = entityKey.length > 100 ? "MOBILE" : "IOT";
const isMobile = hotspotType === "MOBILE";
const image = `${SHDW_DRIVE_URL}/${
isMobile
hotspotType === "MOBILE"
? record?.mobile_hotspot_info?.is_active
? "mobile-hotspot-active.png"
: "mobile-hotspot.png"
Expand Down

0 comments on commit 3334997

Please sign in to comment.