Skip to content

Commit 32cb13a

Browse files
authored
updated incorrect logic (#7482)
1 parent aaf392a commit 32cb13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/rsc/server-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function UpdateName() {
126126
const submitAction = async () => {
127127
startTransition(async () => {
128128
const {error} = await updateName(name);
129-
if (!error) {
129+
if (error) {
130130
setError(error);
131131
} else {
132132
setName('');

0 commit comments

Comments
 (0)