Skip to content

Commit

Permalink
Fix duplicate var name declaration
Browse files Browse the repository at this point in the history
Reviewed By: rafeca

Differential Revision: D6965150

fbshipit-source-id: 332c8202f350e2014fedb9790f3d895222fb4f8d
  • Loading branch information
Peter van der Zee authored and facebook-github-bot committed Feb 13, 2018
1 parent 4d0ee37 commit 6893a26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Libraries/Alert/AlertIOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,10 @@ class AlertIOS {
'keyboardType) and the old syntax will be removed in a future version.');

var callback = type;
var defaultValue = message;
RCTAlertManager.alertWithArgs({
title: title || '',
type: 'plain-text',
defaultValue,
defaultValue: message,
}, (id, value) => {
callback(value);
});
Expand Down

0 comments on commit 6893a26

Please sign in to comment.