diff --git a/web/components/stepper.react.js b/web/components/stepper.react.js --- a/web/components/stepper.react.js +++ b/web/components/stepper.react.js @@ -11,7 +11,7 @@ +content: React.Node, +disabled?: boolean, +loading?: boolean, - +onClick: () => void, + +onClick: () => mixed, }; type ButtonType = 'prev' | 'next'; diff --git a/web/modals/threads/create/compose-subchannel-modal.react.js b/web/modals/threads/create/compose-subchannel-modal.react.js --- a/web/modals/threads/create/compose-subchannel-modal.react.js +++ b/web/modals/threads/create/compose-subchannel-modal.react.js @@ -214,9 +214,7 @@ content: 'Create', loading: loadingState === 'loading', disabled: selectedUsers.size === 0, - onClick: () => { - dispatchCreateSubchannel(); - }, + onClick: dispatchCreateSubchannel, }, }, }),