diff --git a/src/content/blog/2024/04/25/react-19.md b/src/content/blog/2024/04/25/react-19.md index 471fb3876..d5c5b6157 100644 --- a/src/content/blog/2024/04/25/react-19.md +++ b/src/content/blog/2024/04/25/react-19.md @@ -211,7 +211,7 @@ function ChangeName({currentName, onUpdateName}) { const submitAction = async formData => { const newName = formData.get("name"); setOptimisticName(newName); - await updateName(newName); + const updatedName = await updateName(newName); onUpdateName(updatedName); };