diff --git a/src/content/blog/2024/04/25/react-19.md b/src/content/blog/2024/04/25/react-19.md index 53df19d1d1d..5b09ae935cf 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); };