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:
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user