mirror of https://github.com/vector-im/riot-web
Followup type-check fixes for bootstrapCrossSigning callback (#8753)
parent
2f7f36ac85
commit
527da1c5e7
|
@ -274,7 +274,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<void>): Promise<void> => {
|
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<{}>): Promise<void> => {
|
||||||
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
|
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
|
||||||
await makeRequest({
|
await makeRequest({
|
||||||
type: 'm.login.password',
|
type: 'm.login.password',
|
||||||
|
|
|
@ -91,7 +91,7 @@ export default class CreateCrossSigningDialog extends React.PureComponent<IProps
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<void>): Promise<void> => {
|
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<{}>): Promise<void> => {
|
||||||
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
|
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
|
||||||
await makeRequest({
|
await makeRequest({
|
||||||
type: 'm.login.password',
|
type: 'm.login.password',
|
||||||
|
|
Loading…
Reference in New Issue