Commit 8646aa12 authored by Chunchi Che's avatar Chunchi Che

fix

parent 7c134452
Pipeline #23193 passed with stages
in 11 minutes and 38 seconds
...@@ -7,6 +7,6 @@ export default function handleSelectTp(_: ygopro.YgoStocMsg) { ...@@ -7,6 +7,6 @@ export default function handleSelectTp(_: ygopro.YgoStocMsg) {
sideStore.stage = SideStage.TP_SELECTING; sideStore.stage = SideStage.TP_SELECTING;
} else { } else {
roomStore.stage = RoomStage.TP_SELECTING; roomStore.stage = RoomStage.TP_SELECTING;
eventbus.emit(Task.Tp);
} }
eventbus.emit(Task.Tp);
} }
import { useSnapshot } from "valtio";
import { cardStore } from "@/stores"; import { cardStore } from "@/stores";
import { Bg } from "../Bg"; import { Bg } from "../Bg";
...@@ -21,7 +23,8 @@ export const Mat: React.FC = () => { ...@@ -21,7 +23,8 @@ export const Mat: React.FC = () => {
}; };
const Cards: React.FC = () => { const Cards: React.FC = () => {
const length = cardStore.inner.length; const { inner } = useSnapshot(cardStore);
const length = inner.length;
return ( return (
<> <>
{Array.from({ length }).map((_, i) => ( {Array.from({ length }).map((_, i) => (
......
...@@ -116,7 +116,7 @@ export const TpPopover: React.FC< ...@@ -116,7 +116,7 @@ export const TpPopover: React.FC<
))} ))}
</Space> </Space>
} }
open={open || forceOpen} open={open || forceOpen === true}
placement="bottom" placement="bottom"
> >
{children} {children}
......
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