**DISCLAIMER**   

I have vuex store, that **store** some data. For example -> shops and topCategories   

In topCategories i have dict with top products in a shop like this   

`{ '1' : 
 {name: 'Banana', category: 'Fruits', 'sales': 50}, 
 {name: 'Apple', category: 'Fruits', 'sales': 50}
 }` where '1' is shopID

And for each shop we have the same topProducts dict structure.

I have a component that display topProducts for selected shop and component should display top products without duplicates. He should sum up if names of products equal.

**QUESTION**  

Where i should put this logic? In 'computed' in view component or in vuex store action?