Bug fix

localStorage.getItem('ts-cards') could be null.