Commit b28c301f authored by Chunchi Che's avatar Chunchi Che

fix small

parent 6b87ae77
...@@ -17,10 +17,12 @@ export const fetchHandsMeta = createAsyncThunk( ...@@ -17,10 +17,12 @@ export const fetchHandsMeta = createAsyncThunk(
const Ids = param[1]; const Ids = param[1];
const metas = await Promise.all( const metas = await Promise.all(
Ids.filter((id) => { Ids.map(async (id) => {
return id !== 0; if (id === 0) {
}).map(async (id) => { return { id, data: {}, text: {} };
} else {
return await fetchCard(id); return await fetchCard(id);
}
}) })
); );
const response: [number, CardMeta[]] = [player, metas]; const response: [number, CardMeta[]] = [player, metas];
......
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