Commit f1cee37c authored by Chunchi Che's avatar Chunchi Che

fix selectOption service

parent fde33120
import { fetchStrings, getStrings, Region, type ygopro } from "@/api"; import {
fetchStrings,
getStrings,
Region,
sendSelectOptionResponse,
type ygopro,
} from "@/api";
import { displayOptionModal } from "@/ui/Duel/Message"; import { displayOptionModal } from "@/ui/Duel/Message";
export default async (selectOption: ygopro.StocGameMessage.MsgSelectOption) => { export default async (selectOption: ygopro.StocGameMessage.MsgSelectOption) => {
const options = selectOption.options; const options = selectOption.options;
if (options.length === 0) { if (options.length === 0) {
console.warn("<MsgSelectOption>options is empty."); sendSelectOptionResponse(0);
return; return;
} }
await displayOptionModal( await displayOptionModal(
......
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