diff --git a/src/components/views/elements/TagComposer.tsx b/src/components/views/elements/TagComposer.tsx index ff104748a0..03f501f02c 100644 --- a/src/components/views/elements/TagComposer.tsx +++ b/src/components/views/elements/TagComposer.tsx @@ -59,11 +59,11 @@ export default class TagComposer extends React.PureComponent { this.setState({ newTag: "" }); }; - private onRemove = (tag: string) => { + private onRemove(tag: string) { // We probably don't need to proxy this, but for // sanity of `this` we'll do so anyways. this.props.onRemove(tag); - }; + } public render() { return
diff --git a/src/components/views/settings/Notifications.tsx b/src/components/views/settings/Notifications.tsx index e0e2467240..a488145153 100644 --- a/src/components/views/settings/Notifications.tsx +++ b/src/components/views/settings/Notifications.tsx @@ -240,12 +240,12 @@ export default class Notifications extends React.PureComponent { return preparedNewState; } - private async refreshPushers(): Promise> { - return { ...(await MatrixClientPeg.get().getPushers()) }; + private refreshPushers(): Promise> { + return MatrixClientPeg.get().getPushers(); } - private async refreshThreepids(): Promise> { - return { ...(await MatrixClientPeg.get().getThreePids()) }; + private refreshThreepids(): Promise> { + return MatrixClientPeg.get().getThreePids(); } private showSaveError() {