Shared:Api:Settings: change confirmKey type for validateTfaCode function

This commit is contained in:
Darya Umrikhina 2024-07-29 12:00:58 +04:00
parent 72c1eeec67
commit b85b33bcc1

View File

@ -717,7 +717,7 @@ export function getTfaSecretKeyAndQR(confirmKey = null) {
return request(options);
}
export function validateTfaCode(code, confirmKey = null) {
export function validateTfaCode(code, confirmKey: string | null = null) {
const data = {
code,
};