Skip to content

Commit 71e04ce

Browse files
Prefer null check
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent 4ca1356 commit 71e04ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/patterns/note.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const Note = recipe<Input, Output>(
186186

187187
return derive(result, ({ pending, result }) => {
188188
if (pending) return undefined;
189-
if (!result) return "Error occured";
189+
if (result == null) return "Error occured";
190190
return result;
191191
});
192192
},

0 commit comments

Comments
 (0)