Commit 576dd8ba authored by Chunchi Che's avatar Chunchi Che

fix small in CheckCounterModal

parent 8e69b403
Pipeline #23479 passed with stages
in 14 minutes and 44 seconds
...@@ -7,7 +7,7 @@ import { proxy, useSnapshot } from "valtio"; ...@@ -7,7 +7,7 @@ import { proxy, useSnapshot } from "valtio";
import { fetchStrings, Region, sendSelectCounterResponse } from "@/api"; import { fetchStrings, Region, sendSelectCounterResponse } from "@/api";
import { useConfig } from "@/config"; import { useConfig } from "@/config";
import { NeosModal } from "./NeosModal"; import { NeosModal } from "../NeosModal";
interface CheckCounterModalProps { interface CheckCounterModalProps {
isOpen: boolean; isOpen: boolean;
...@@ -34,7 +34,7 @@ export const CheckCounterModal = () => { ...@@ -34,7 +34,7 @@ export const CheckCounterModal = () => {
const options = snapCheckCounterModal.options; const options = snapCheckCounterModal.options;
const counterName = fetchStrings( const counterName = fetchStrings(
Region.Counter, Region.Counter,
`0x${snapCheckCounterModal.counterType!}`, `0x${snapCheckCounterModal.counterType?.toString(16)}`,
); // FIXME: 这里转十六进制的逻辑有问题 ); // FIXME: 这里转十六进制的逻辑有问题
const [selected, setSelected] = useState(new Array(options.length)); const [selected, setSelected] = useState(new Array(options.length));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment