Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 527da1c

Browse files
authored
Followup type-check fixes for bootstrapCrossSigning callback (#8753)
1 parent 2f7f36a commit 527da1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
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

+1-1
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)