Law of torts

A store negligently leaves a heavy box on an unstable high shelf. Before the box falls, a customer nearby notices the danger and warns others. Another customer nevertheless shakes the shelf as a joke, causing the box to fall and injure a shopper. Which issue is most important in deciding whether the store's negligence was a legal cause of the injury?