|
@@ -125,9 +125,10 @@ const YourProfile = ({state, orders, loginStatus = {}, updateStatus, updatedUser
|
|
}/>
|
|
}/>
|
|
<button disabled = {
|
|
<button disabled = {
|
|
(newPicture == "PENDING") ||
|
|
(newPicture == "PENDING") ||
|
|
- ( !isAdmin && (!nowPassword)) ||
|
|
|
|
- ((isAdmin && isOwner.id && data._id && isOwner.id == data._id) && !nowPassword ) ||
|
|
|
|
- (Object.keys(loginStatus).length == 0) ||
|
|
|
|
|
|
+ ( !isAdmin && (!nowPassword || (Object.keys(loginStatus).length == 0))) ||
|
|
|
|
+ (((isAdmin && isOwner.id && data._id && isOwner.id == data._id) && (!nowPassword || (Object.keys(loginStatus).length == 0)))
|
|
|
|
+ &&
|
|
|
|
+ (Object.keys(loginStatus).length == 0) ) ||
|
|
(loginStatus.status && loginStatus.status == "RESOLVED" && !loginStatus.payload.data.login)
|
|
(loginStatus.status && loginStatus.status == "RESOLVED" && !loginStatus.payload.data.login)
|
|
}
|
|
}
|
|
onClick = {
|
|
onClick = {
|