Commit be22e94a authored by Chunchi Che's avatar Chunchi Che

fix extra deck

parent 421c3731
Pipeline #22700 passed with stages
in 12 minutes and 49 seconds
/* eslint valtio/avoid-this-in-proxy: 0 */
import { Omit } from "@react-spring/web";
import { proxy } from "valtio";
import _ from "lodash";
import { proxy } from "valtio";
import { ygopro } from "@/api";
import type { InitInfo, MatState } from "./types";
......
......@@ -19,6 +19,7 @@ import {
Space,
Upload,
} from "antd";
import { clone } from "lodash-es";
import React, { useEffect, useState } from "react";
import { useNavigate, useParams } from "react-router-dom";
import rustInit from "rust-src";
......@@ -142,7 +143,7 @@ const WaitRoom = () => {
sendUpdateDeck(deck);
setChoseDeck(true);
window.myExtraDeckCodes = deck.extra;
window.myExtraDeckCodes = clone(deck.extra);
};
const handleChoseDeck = async (deckName: string) => {
......
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