JavaScript Security Best Practices

What security risk does this code present?
const data = JSON.parse(localStorage.getItem('userData'));
if (data.isAdmin) {
  showAdminPanel();
}
Next Question (12/20)