Display of frozen assets throwing errors when user has frozen assets
This is because the function to compute the value is called twice. The first time, the context is the template, and it works fine. The second time, however, the context is the window, and the function fails.
The exact line that fails is this one (#45 as of this writing)
existing_contracts = collectionVectorToMap Contracts.find({market_id: @_id}).fetch()
@_id us undefined when the context is the window.
Both times the function is called the call stems from the market template.