aboutsummaryrefslogtreecommitdiff
path: root/modern/src/UserPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 23:13:11 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 23:13:11 -0700
commitb318cfd66ee2fa9918797fc0e0226a01983da746 (patch)
tree9224dc7290011285d6e8cb8829a12f5cb596575a /modern/src/UserPage.js
parent9238895c99c30c442ce8dae41b61f898a79dd89b (diff)
downloadtrackermap-web-b318cfd66ee2fa9918797fc0e0226a01983da746.tar.gz
trackermap-web-b318cfd66ee2fa9918797fc0e0226a01983da746.tar.bz2
trackermap-web-b318cfd66ee2fa9918797fc0e0226a01983da746.zip
Implement users editing
Diffstat (limited to 'modern/src/UserPage.js')
-rw-r--r--modern/src/UserPage.js6
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;
};