mirror of
https://github.com/yudejp/yude.jp.git
synced 2025-05-11 14:38:41 +00:00
Clear body on success
This commit is contained in:
parent
12da318a24
commit
15be8f8fdd
@ -48,6 +48,9 @@ export default function Chat() {
|
||||
async (text) => {
|
||||
if (text.includes("Success")) {
|
||||
await showAlert("送信しました。");
|
||||
setBody("");
|
||||
} else {
|
||||
await showAlert("送信するときになんらかの問題が発生しました。" + text);
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user