Make useOwnAccount return an object
This commit is contained in:
@@ -31,7 +31,7 @@ const messages = defineMessages({
|
||||
const GroupActionButton = ({ group }: IGroupActionButton) => {
|
||||
const dispatch = useAppDispatch();
|
||||
const intl = useIntl();
|
||||
const account = useOwnAccount();
|
||||
const { account } = useOwnAccount();
|
||||
|
||||
const joinGroup = useJoinGroup(group);
|
||||
const leaveGroup = useLeaveGroup(group);
|
||||
|
||||
@@ -27,7 +27,7 @@ interface IGroupActionButton {
|
||||
}
|
||||
|
||||
const GroupOptionsButton = ({ group }: IGroupActionButton) => {
|
||||
const account = useOwnAccount();
|
||||
const { account } = useOwnAccount();
|
||||
const dispatch = useAppDispatch();
|
||||
const intl = useIntl();
|
||||
const leaveGroup = useLeaveGroup(group);
|
||||
|
||||
Reference in New Issue
Block a user