Skip to content

Commit

Permalink
biome
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter275 committed Oct 3, 2024
1 parent a70ae52 commit 112ecfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/DeviceSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { useAppStore } from "@core/stores/appStore.js";
import { useDeviceStore } from "@core/stores/deviceStore.js";
import { Hashicon } from "@emeraldpay/hashicon-react";
import {
BellIcon,
BellOffIcon,
HomeIcon,
LanguagesIcon,
MoonIcon,
PlusIcon,
SearchIcon,
SunIcon,
TerminalIcon,
BellIcon,
BellOffIcon,
} from "lucide-react";

export const DeviceSelector = (): JSX.Element => {
Expand Down
6 changes: 3 additions & 3 deletions src/core/subscriptions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Device } from "@core/stores/deviceStore.js";
import { Protobuf, Types } from "@meshtastic/js";
import { Protobuf, type Types } from "@meshtastic/js";
import { playNotificationSound } from "./utils/notify";

export const subscribeAll = (
Expand Down Expand Up @@ -85,9 +85,9 @@ export const subscribeAll = (
...messagePacket,
state: messagePacket.from !== myNodeNum ? "ack" : "waiting",
});
if(messagePacket.from !== myNodeNum){
if (messagePacket.from !== myNodeNum) {
playNotificationSound();
}
}
});

connection.events.onTraceRoutePacket.subscribe((traceRoutePacket) => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils/notify.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useAppStore } from '@core/stores/appStore.js';
import { useAppStore } from "@core/stores/appStore.js";

const notificationSound = new Audio("/notification.wav"); //change sound if needed

Expand Down

0 comments on commit 112ecfa

Please sign in to comment.