From ff51bd437a213ac142681b8e1792ab734557e70d Mon Sep 17 00:00:00 2001 From: dikapratana Date: Mon, 9 Feb 2026 11:15:29 +0700 Subject: [PATCH] fix(command): fix value command --- src/features/topics/index.tsx | 10 ++++------ src/features/topics/sections/command.tsx | 2 +- src/repositories/device/types.d.ts | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/features/topics/index.tsx b/src/features/topics/index.tsx index a6fee95..54336d4 100644 --- a/src/features/topics/index.tsx +++ b/src/features/topics/index.tsx @@ -33,7 +33,7 @@ export default function TopicsFeature() { setError(""); setForm({ topic: "", - type: tab === "state" ? "state-reply" : "commands", + type: tab === "state" ? "state-reply" : "command", }); setIsOpen(true); }; @@ -58,7 +58,7 @@ export default function TopicsFeature() { setIsOpen(false); setForm({ topic: "", - type: tab === "state" ? "state-reply" : "commands", + type: tab === "state" ? "state-reply" : "command", }); }, onError: () => { @@ -159,12 +159,10 @@ export default function TopicsFeature() { } > - + - {error && ( -

{error}

- )} + {error &&

{error}

}