Skip to content

Commit d50ded2

Browse files
committed
shiritori/functions: serialize kanji representation
This serialize kanji representation to the conversation state to ensure we always compute the next kana from the original kanji instead of the previous hiragana conversation. Change-Id: I8dc86f0f81b6c2d4083be2c1040264a455974bce
1 parent b1901c9 commit d50ded2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function gameHandler (app) {
4747
},
4848
next (word, kana) {
4949
app.data.used.unshift(input);
50-
app.data.used.unshift(kana);
50+
app.data.used.unshift(word);
5151
app.ask({
5252
speech: word,
5353
displayText: `${word} [${kana}]`

0 commit comments

Comments
 (0)