Skip to content

Commit

Permalink
fix(common): CHECKOUT-4418 Fix instanceof check not returning true …
Browse files Browse the repository at this point in the history
…when code is minified
  • Loading branch information
davidchin committed Sep 18, 2019
1 parent f08dcdc commit 5f8858f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/common/error/SentryErrorLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class SentryErrorLogger implements ErrorLogger {
if (event.exception) {
const { originalException = null } = hint || {};

if (!(originalException instanceof Error)) {
if (!originalException || typeof originalException === 'string') {
return null;
}

Expand Down

0 comments on commit 5f8858f

Please sign in to comment.