Skip to content

Commit 30a820f

Browse files
duxovniJanBurp
authored andcommitted
Followup type-check fixes for bootstrapCrossSigning callback (matrix-org#8753)
1 parent abe66aa commit 30a820f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
274274
});
275275
};
276276

277-
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<void>): Promise<void> => {
277+
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<{}>): Promise<void> => {
278278
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
279279
await makeRequest({
280280
type: 'm.login.password',

src/components/views/dialogs/security/CreateCrossSigningDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class CreateCrossSigningDialog extends React.PureComponent<IProps
9191
}
9292
}
9393

94-
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<void>): Promise<void> => {
94+
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<{}>): Promise<void> => {
9595
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
9696
await makeRequest({
9797
type: 'm.login.password',

0 commit comments

Comments
 (0)