Session per user without login

Try to change

  if (local.getItem(productId) === null) { 

to

  if (local.getItem('productId') === null) { 

and tell me how it goes.

  • Lior