File tree Expand file tree Collapse file tree
components/common/userform Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.env
22.vscode
3+ * .zip
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ function UserForm (props) {
5454 < TextField
5555 id = 'password'
5656 label = 'Enter password'
57+ placeholder = { type === 'create' ? 'Enter password' : 'Password will not be updated if left blank' }
5758 variant = 'outlined'
5859 size = 'small'
5960 disabled = { loadstatus . isLoading }
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ export default class Service {
7171 const body = { }
7272
7373 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 ]
7676 } else {
7777 throw new Error ( 'Please check your input.' )
7878 }
You can’t perform that action at this time.
0 commit comments