We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 760c134 commit dc3841eCopy full SHA for dc3841e
app/lib/redis.ts
@@ -73,8 +73,9 @@ export const tedashi = async (
73
if (index < 0 || 12 < index) {
74
throw new Error("index out of tehai length");
75
}
76
- const deletedTehai = state.tehai.filter((_, i) => i !== index);
77
- const discardedHai = state.tehai[index];
+ const sortedTehai = sortTehai(state.tehai);
+ const deletedTehai = sortedTehai.filter((_, i) => i !== index);
78
+ const discardedHai = sortedTehai[index];
79
80
const newGameState: GameState = {
81
...state,
0 commit comments