From 9f97da5b52e2f92a57d2a1466ea63723d00a00b1 Mon Sep 17 00:00:00 2001
From: Risto Luukkonen <risto.m.luukkonen@utu.fi>
Date: Thu, 28 Mar 2019 13:17:58 +0200
Subject: [PATCH] case sensitivity from names taken off

---
 src/App.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/App.js b/src/App.js
index 426b672..61e39ae 100644
--- a/src/App.js
+++ b/src/App.js
@@ -27,10 +27,8 @@ class App extends React.Component {
       }).catch(console.log('contact to the server'))       
     }
 
-    // (part 2) method to check whether param1 (=list) contains param2 (=comparable). 
-    // (part 3 update) this is obsolete due to changes in addPerson()-method
     isUnique = (list,comparable) =>{
-      var unique = list.filter(a=> comparable===a.name)
+      var unique = list.filter(a=> comparable.toUpperCase() ===a.name.toUpperCase())
       if(unique.length>0){
         return false
       }
-- 
GitLab