mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
Better fix
This commit is contained in:
@@ -78,6 +78,8 @@ export default class FlagButton extends Component {
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
return this.closeMenu();
|
||||
default:
|
||||
throw new Error(`Unexpected step ${step}`);
|
||||
}
|
||||
@@ -134,10 +136,6 @@ export default class FlagButton extends Component {
|
||||
}
|
||||
|
||||
if (!failed) {
|
||||
if (step === this.props.getPopupMenu.length - 1) {
|
||||
this.closeMenu();
|
||||
return;
|
||||
}
|
||||
this.setState({ step: step + 1 });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user