Skip to content

Commit

Permalink
RN: Teach YellowBox to Count
Browse files Browse the repository at this point in the history
Reviewed By: kassens

Differential Revision: D2846410

fb-gh-sync-id: 03127ff30cac54679ed0dbb225551efafb0cafa8
  • Loading branch information
yungsters authored and facebook-github-bot-4 committed Jan 20, 2016
1 parent b9a8be9 commit ab87033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/ReactIOS/YellowBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function updateWarningMap(format, ...args): void {
].join(' ');

const count = _warningMap.has(warning) ? _warningMap.get(warning) : 0;
_warningMap.set(warning, count + 2);
_warningMap.set(warning, count + 1);
_warningEmitter.emit('warning', _warningMap);
}

Expand Down

0 comments on commit ab87033

Please sign in to comment.