Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Fix a bad condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored May 11, 2017
1 parent b58a841 commit a5756b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-error-overlay/src/components/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function createOverlay(
applyStyles(header, headerStyle);

// Make message prettier
let finalMessage = message.match(/^\w*:/) ? name + ': ' + message : message;
let finalMessage = message.match(/^\w*:/) ? message : name + ': ' + message;
finalMessage = finalMessage
// TODO: maybe remove this prefix from fbjs?
// It's just scaring people
Expand Down

0 comments on commit a5756b7

Please sign in to comment.