fix(app): don't suppress toast when copying user id in popout (#38)
This commit is contained in:
parent
cbe914cf6f
commit
8294821a96
@ -315,14 +315,14 @@ export const UserAreaPopout = observer(() => {
|
|||||||
if (!currentUserId) {
|
if (!currentUserId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
TextCopyActionCreators.copy(i18n, currentUserId, true);
|
TextCopyActionCreators.copy(i18n, currentUserId);
|
||||||
}, [currentUserId, i18n]);
|
}, [currentUserId, i18n]);
|
||||||
|
|
||||||
const handleCopyUserTag = React.useCallback(() => {
|
const handleCopyUserTag = React.useCallback(() => {
|
||||||
if (!currentUser) {
|
if (!currentUser) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
TextCopyActionCreators.copy(i18n, currentUser.tag, true);
|
TextCopyActionCreators.copy(i18n, currentUser.tag);
|
||||||
}, [currentUser, i18n]);
|
}, [currentUser, i18n]);
|
||||||
|
|
||||||
const openManageAccounts = React.useCallback(() => {
|
const openManageAccounts = React.useCallback(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user