Skip to content
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions components/ui/error-boundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@
toast.success('Debug information copied to clipboard');
})
.catch(() => {
console.log('Debug information:', debugInfo);
toast.info('Debug information logged to console');
});
logger.debug('Debug information', { ...debugInfo, component: this.props.component || 'Unknown' });

Check warning on line 146 in components/ui/error-boundary.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

components/ui/error-boundary.tsx#L146

Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.
toast.info('Debug information logged to console');
});
};

render() {
Expand Down
Loading