Skip to content

Commit

Permalink
feat: log agent errors into console
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Jan 3, 2023
1 parent c5d2dc6 commit c529ce6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/useVisitorData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export function useVisitorData<TExtended extends boolean>(

return result;
} catch (error) {
console.error(error);

dataValue.set(undefined);

if (error instanceof Error) {
Expand Down

0 comments on commit c529ce6

Please sign in to comment.