File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
components/common/userform Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
.env
2
2
.vscode
3
+ * .zip
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ function UserForm (props) {
54
54
< TextField
55
55
id = 'password'
56
56
label = 'Enter password'
57
+ placeholder = { type === 'create' ? 'Enter password' : 'Password will not be updated if left blank' }
57
58
variant = 'outlined'
58
59
size = 'small'
59
60
disabled = { loadstatus . isLoading }
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ export default class Service {
71
71
const body = { }
72
72
73
73
fields . forEach ( ( item ) => {
74
- if ( info [ item . toLowerCase ( ) ] !== undefined && info [ item . toLowerCase ( ) ] !== '' ) {
75
- body [ item ] = info [ item . toLowerCase ( ) ]
74
+ if ( info [ item . toLowerCase ( ) ] !== undefined && ( item !== 'password' ) ? info [ item ] !== '' : true ) {
75
+ body [ item ] = info [ item ]
76
76
} else {
77
77
throw new Error ( 'Please check your input.' )
78
78
}
You can’t perform that action at this time.
0 commit comments