diff --git a/README.md b/README.md index 95e1bbe..e12fa98 100644 --- a/README.md +++ b/README.md @@ -556,7 +556,7 @@ var subtotalGetter = [ ['items'], function(items) { // items is of type `Immutable.List` - return items.reduce(function(total, items) { + return items.reduce(function(total, item) { return total + (item.get('price') * item.get('quantity')) }, 0) }