Commit 79f1f957 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/selectOption' into 'main'

fix selectOption service

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