Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when clicking on Cart button #997

@brent-hoover

Description

@brent-hoover

Expected behavior

When you click on the Cart button you should see the cart detail

Actual Behavior

Receive an error in the console and never see the cart


meteor.js?hash=199010c…:913 Exception from Tracker recompute function:
meteor.js?hash=199010c…:913 TypeError: Cannot read property 'rate' of undefined
    at http://localhost:3000/packages/reactioncommerce_reaction-collections.js?hash=9a3deaa1a2196cd43406622aa34f1d8028743f26:107:70
    at Array.reduce (native)
    at getSummary (http://localhost:3000/packages/reactioncommerce_reaction-collections.js?hash=9a3deaa1a2196cd43406622aa34f1d8028743f26:101:18)
    at Object.cartShipping (http://localhost:3000/packages/reactioncommerce_reaction-collections.js?hash=9a3deaa1a2196cd43406622aa34f1d8028743f26:138:25)
    at http://localhost:3000/packages/spacebars.js?hash=6b2a9ade7533b27d695f0281f10c438e40b8e6f8:235:19
    at Spacebars.call (http://localhost:3000/packages/spacebars.js?hash=6b2a9ade7533b27d695f0281f10c438e40b8e6f8:159:51)
    at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?hash=6b2a9ade7533b27d695f0281f10c438e40b8e6f8:96:25)
    at Object.Spacebars.mustache (http://localhost:3000/packages/spacebars.js?hash=6b2a9ade7533b27d695f0281f10c438e40b8e6f8:100:39)
    at ._render (http://localhost:3000/packages/reactioncommerce_reaction-checkout.js?hash=05d258a2898fcc0f59e55f963539ea45e6060cc0:1019:22)
    at doRender (http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:2017:25)

Steps to Reproduce the Behavior

  1. Add items to cart
  2. Don't click on the "Checkout Now" button
  3. Click on the cart icon
  4. Observe the error in the console

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions