Updated useEffect hook in product context to include react router state as dependency. Now "CartItem" component checks for match between current location pathname and its own slug. If match is true, state is passed when user clicks on the item which now triggers previously mentioned useEffect hook and correct product variant is displayed.
Issue #103 done.
Main changes: