diff --git a/js/src/forum/components/CreatePollModal.tsx b/js/src/forum/components/CreatePollModal.tsx index 0c4a19ae..157baaa1 100755 --- a/js/src/forum/components/CreatePollModal.tsx +++ b/js/src/forum/components/CreatePollModal.tsx @@ -3,7 +3,6 @@ import app from 'flarum/forum/app'; import Modal, { IInternalModalAttrs } from 'flarum/common/components/Modal'; import PollForm from './PollForm'; import PollModel from '../models/Poll'; -import PollFormState from '../states/PollFormState'; interface CreatePollModalAttrs extends IInternalModalAttrs { poll: PollModel; @@ -27,7 +26,7 @@ export default class CreatePollModal extends Modal { ]; } - async onFormSubmit(data: object, state: PollFormState): Promise { + async onFormSubmit(data: object): Promise { this.hide(); await this.attrs.onsubmit(data); } diff --git a/js/src/forum/components/Poll/PollSubmitButton.tsx b/js/src/forum/components/Poll/PollSubmitButton.tsx index 3f02f8a6..443f5059 100644 --- a/js/src/forum/components/Poll/PollSubmitButton.tsx +++ b/js/src/forum/components/Poll/PollSubmitButton.tsx @@ -15,7 +15,7 @@ export default class PollSubmitButton extends Component {