diff options
Diffstat (limited to 'modern/src/UserPage.js')
-rw-r--r-- | modern/src/UserPage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/UserPage.js b/modern/src/UserPage.js index 4b58ba81..a05cacef 100644 --- a/modern/src/UserPage.js +++ b/modern/src/UserPage.js @@ -13,9 +13,9 @@ const UserPage = () => { const getItem = () => { const updatedItem = item; - updatedItem.name = name; - updatedItem.email = email; - updatedItem.password = password; + updatedItem.name = name || item.name; + updatedItem.email = email || item.email; + updatedItem.password = password || item.password; return updatedItem; }; |