1
0
mirror of https://github.com/ragestudio/comty.git synced 2025-07-10 01:34:15 +00:00

fix unfollow dialog

This commit is contained in:
SrGooglo 2023-08-15 18:21:52 +00:00
parent abad8a5644
commit 6d1f68f9bc

@ -65,6 +65,7 @@ export default class Account extends React.Component {
}
toggleLike = async () => {
if (this.state.isFollowed) {
const accept = await new Promise((resolve, reject) => {
antd.Modal.confirm({
title: <Translation>
@ -91,6 +92,7 @@ export default class Account extends React.Component {
if (!accept) {
return false
}
}
const result = await FollowsModel.toggleFollow({
username: this.state.requestedUser,