Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Prefer null check
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
  • Loading branch information
bfollington and cubic-dev-ai[bot] authored Oct 31, 2025
commit 71e04ce1c4b1386d6eb4cee18675e1d745cda8fc
2 changes: 1 addition & 1 deletion packages/patterns/note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const Note = recipe<Input, Output>(

return derive(result, ({ pending, result }) => {
if (pending) return undefined;
if (!result) return "Error occured";
if (result == null) return "Error occured";
return result;
});
},
Expand Down