Skip to content

Commit

Permalink
Fix mistake in the example code in the "Server Functions" doc
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-nd committed Dec 20, 2024
1 parent 1517494 commit 9636f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/rsc/server-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function UpdateName() {
const submitAction = async () => {
startTransition(async () => {
const {error} = await updateName(name);
if (!error) {
if (error) {
setError(error);
} else {
setName('');
Expand Down

0 comments on commit 9636f4a

Please sign in to comment.