mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-29 00:34:35 +02:00
Indicate it's myAccount when editing staff (#884)
* add myaccount prop * take out ternary * user constand insted this.state
This commit is contained in:
parent
80a9a958a8
commit
d4cdbab203
@ -36,7 +36,8 @@ class AdminPanelViewStaff extends React.Component {
|
||||
const userDataWithNumericLevel = {
|
||||
...userData,
|
||||
level: userData.level*1,
|
||||
sendEmailOnNewTicket: userData.sendEmailOnNewTicket === "1"
|
||||
sendEmailOnNewTicket: userData.sendEmailOnNewTicket === "1",
|
||||
myAccount: this.props.userEmail == userData.email
|
||||
};
|
||||
|
||||
return _.extend({}, userDataWithNumericLevel, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user