diff --git a/src/components/PageComponents/ModuleConfig/CannedMessage.tsx b/src/components/PageComponents/ModuleConfig/CannedMessage.tsx index 1675fe2e..f7af580f 100644 --- a/src/components/PageComponents/ModuleConfig/CannedMessage.tsx +++ b/src/components/PageComponents/ModuleConfig/CannedMessage.tsx @@ -4,7 +4,8 @@ import { useDevice } from "@core/stores/deviceStore.js"; import { Protobuf } from "@meshtastic/js"; export const CannedMessage = (): JSX.Element => { - const { moduleConfig, setWorkingModuleConfig, setCannedMessages } = useDevice(); + const { moduleConfig, setWorkingModuleConfig, setCannedMessages } = + useDevice(); const onSubmit = (data: CannedMessageValidation) => { setWorkingModuleConfig( @@ -18,9 +19,9 @@ export const CannedMessage = (): JSX.Element => { setCannedMessages( new Protobuf.CannedMessages.CannedMessageModuleConfig({ - messages: data.messages - }) - ) + messages: data.messages, + }), + ); }; return ( diff --git a/src/core/stores/deviceStore.ts b/src/core/stores/deviceStore.ts index e382a1c8..8efb069c 100644 --- a/src/core/stores/deviceStore.ts +++ b/src/core/stores/deviceStore.ts @@ -69,7 +69,9 @@ export interface Device { setWorkingModuleConfig: (config: Protobuf.ModuleConfig.ModuleConfig) => void; setHardware: (hardware: Protobuf.Mesh.MyNodeInfo) => void; // setMetrics: (metrics: Types.PacketMetadata) => void; - setCannedMessages: (message: Protobuf.CannedMessages.CannedMessageModuleConfig) => void; + setCannedMessages: ( + message: Protobuf.CannedMessages.CannedMessageModuleConfig, + ) => void; setActivePage: (page: Page) => void; setActiveNode: (node: number) => void; setPendingSettingsChanges: (state: boolean) => void;