Show empty KeyValue's if editing (#526)

* Show empty KeyValue's if editing

* Add verification to name and user name, enforce length

Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
This commit was merged in pull request #526.
This commit is contained in:
Frank Noirot
2021-09-23 04:51:44 -04:00
committed by GitHub
parent 18732e27fc
commit 335dac8677
2 changed files with 53 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ const ProfileKeyValue = ({
bottom = false,
}: ProfileKeyValueType) => {
return (
user[field.name] && (
(user[field.name] || hasPermissionToEdit) && (
<KeyValue
keyName={field.name}
edit={{