Commit b33ff7f5 authored by chechunchi's avatar chechunchi

fix small

parent 0a6f32ea
Pipeline #19460 passed with stages
in 4 minutes and 30 seconds
...@@ -7,7 +7,7 @@ import { ...@@ -7,7 +7,7 @@ import {
import { useAppSelector } from "../../hook"; import { useAppSelector } from "../../hook";
import SingleSlot from "./singleSlot"; import SingleSlot from "./singleSlot";
const depth = 0.02; const depth = 0.005;
const Cemeteries = () => { const Cemeteries = () => {
const meCemetery = useAppSelector(selectMeCemetery).inner; const meCemetery = useAppSelector(selectMeCemetery).inner;
......
...@@ -4,7 +4,7 @@ import { useAppSelector } from "../../hook"; ...@@ -4,7 +4,7 @@ import { useAppSelector } from "../../hook";
import { selectMeDeck, selectOpDeck } from "../../reducers/duel/deckSlice"; import { selectMeDeck, selectOpDeck } from "../../reducers/duel/deckSlice";
import SingleSlot from "./singleSlot"; import SingleSlot from "./singleSlot";
const depth = 0.02; const depth = 0.005;
const Deck = () => ( const Deck = () => (
<> <>
......
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
} from "../../reducers/duel/mod"; } from "../../reducers/duel/mod";
const shape = CONFIG.SingleSlotShape; const shape = CONFIG.SingleSlotShape;
const depth = 0.02; const depth = 0.005;
const SingleSlot = (props: { const SingleSlot = (props: {
state: CardState[]; state: CardState[];
...@@ -25,7 +25,11 @@ const SingleSlot = (props: { ...@@ -25,7 +25,11 @@ const SingleSlot = (props: {
if (props.state.length != 0) { if (props.state.length != 0) {
dispatch( dispatch(
setCardListModalInfo( setCardListModalInfo(
props.state.map((item) => { props.state
.filter(
(item) => item.occupant !== undefined && item.occupant.id !== 0
)
.map((item) => {
return { return {
name: item.occupant?.text.name, name: item.occupant?.text.name,
desc: item.occupant?.text.desc, desc: item.occupant?.text.desc,
......
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