|
|
|
|
624
|
|
624
|
|
625
|
// When the local user role is updated to moderator and we have a pending subject change
|
625
|
// When the local user role is updated to moderator and we have a pending subject change
|
626
|
// which was not reflected we need to set it (the first time we tried was before becoming moderator).
|
626
|
// which was not reflected we need to set it (the first time we tried was before becoming moderator).
|
627
|
- if (pendingSubjectChange !== subject) {
|
|
|
|
|
627
|
+ if (typeof pendingSubjectChange !== 'undefined' && pendingSubjectChange !== subject) {
|
628
|
dispatch(setSubject(pendingSubjectChange));
|
628
|
dispatch(setSubject(pendingSubjectChange));
|
629
|
}
|
629
|
}
|
630
|
}
|
630
|
}
|