diff --git a/js/components/RecordLunch.js b/js/components/RecordLunch.js index 05c1b77..6f71031 100644 --- a/js/components/RecordLunch.js +++ b/js/components/RecordLunch.js @@ -67,8 +67,9 @@ module.exports = React.createClass({ if (i == 0) { var self = this; + var localSuggestion = suggestion; var popFunction = function(){ - return function(){self.props.removeSuggestion(suggestion);}; + return function(){self.props.removeSuggestion(localSuggestion);}; }(); suggestions.push((