Skip to content

Commit

Permalink
fix(logger): wrap nullish atom name (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
BANOnotIT authored Jun 19, 2024
1 parent 9ea9ca9 commit 65c90ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const getCause = (patch: AtomCache, log = ''): string => {
if (patch.cause !== null && patch.cause.proto !== __root)
return getCause(
patch.cause,
log + ' <-- ' + patch.cause.proto.name ?? 'unnamed',
log + ' <-- ' + (patch.cause.proto.name ?? 'unnamed'),
)
else {
return log || 'root'
Expand Down

0 comments on commit 65c90ed

Please sign in to comment.