Skip to content

Commit f93a661

Browse files
committed
Update use-two-factor-auth.ts
1 parent b93fa47 commit f93a661

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

resources/js/hooks/use-two-factor-auth.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export const useTwoFactorAuth = () => {
3535
const fetchQrCode = useCallback(async (): Promise<void> => {
3636
try {
3737
const { svg } = await fetchJson<TwoFactorSetupData>(qrCode.url());
38-
3938
setQrCodeSvg(svg);
4039
} catch {
4140
setErrors((prev) => [...prev, 'Failed to fetch QR code']);
@@ -46,7 +45,6 @@ export const useTwoFactorAuth = () => {
4645
const fetchSetupKey = useCallback(async (): Promise<void> => {
4746
try {
4847
const { secretKey: key } = await fetchJson<TwoFactorSecretKey>(secretKey.url());
49-
5048
setManualSetupKey(key);
5149
} catch {
5250
setErrors((prev) => [...prev, 'Failed to fetch a setup key']);
@@ -68,7 +66,6 @@ export const useTwoFactorAuth = () => {
6866
try {
6967
clearErrors();
7068
const codes = await fetchJson<string[]>(recoveryCodes.url());
71-
7269
setRecoveryCodesList(codes);
7370
} catch {
7471
setErrors((prev) => [...prev, 'Failed to fetch recovery codes']);

0 commit comments

Comments
 (0)