Commit f1cee37c authored by Chunchi Che's avatar Chunchi Che

fix selectOption service

parent fde33120
Pipeline #23437 passed with stages
in 13 minutes and 51 seconds
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