File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ export const useTwoFactorAuth = () => {
35
35
const fetchQrCode = useCallback ( async ( ) : Promise < void > => {
36
36
try {
37
37
const { svg } = await fetchJson < TwoFactorSetupData > ( qrCode . url ( ) ) ;
38
-
39
38
setQrCodeSvg ( svg ) ;
40
39
} catch {
41
40
setErrors ( ( prev ) => [ ...prev , 'Failed to fetch QR code' ] ) ;
@@ -46,7 +45,6 @@ export const useTwoFactorAuth = () => {
46
45
const fetchSetupKey = useCallback ( async ( ) : Promise < void > => {
47
46
try {
48
47
const { secretKey : key } = await fetchJson < TwoFactorSecretKey > ( secretKey . url ( ) ) ;
49
-
50
48
setManualSetupKey ( key ) ;
51
49
} catch {
52
50
setErrors ( ( prev ) => [ ...prev , 'Failed to fetch a setup key' ] ) ;
@@ -68,7 +66,6 @@ export const useTwoFactorAuth = () => {
68
66
try {
69
67
clearErrors ( ) ;
70
68
const codes = await fetchJson < string [ ] > ( recoveryCodes . url ( ) ) ;
71
-
72
69
setRecoveryCodesList ( codes ) ;
73
70
} catch {
74
71
setErrors ( ( prev ) => [ ...prev , 'Failed to fetch recovery codes' ] ) ;
You can’t perform that action at this time.
0 commit comments