Skip to content

Commit 4e0709f

Browse files
committed
Apply #472 changes to Japanese documents
1 parent da7da61 commit 4e0709f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/_basic/ja_listening_modals.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ order: 12
2121
# view_submission リクエストを処理
2222
@app.view("view_1")
2323
def handle_submission(ack, body, client, view, logger):
24-
# `block_c`という block_id に `dreamy_input` を持つ input ブロックがある場合
25-
hopes_and_dreams = view["state"]["values"]["block_c"]["dreamy_input"]
24+
# `input_c`という block_id に `dreamy_input` を持つ input ブロックがある場合
25+
hopes_and_dreams = view["state"]["values"]["input_c"]["dreamy_input"]
2626
user = body["user"]["id"]
2727
# 入力値を検証
2828
errors = {}
2929
if hopes_and_dreams is not None and len(hopes_and_dreams) <= 5:
30-
errors["block_c"] = "The value must be longer than 5 characters"
30+
errors["input_c"] = "The value must be longer than 5 characters"
3131
if len(errors) > 0:
3232
ack(response_action="errors", errors=errors)
3333
return
@@ -52,4 +52,4 @@ def handle_submission(ack, body, client, view, logger):
5252
logger.exception(f"Failed to post a message {e}")
5353

5454
```
55-
</div>
55+
</div>

0 commit comments

Comments
 (0)