Update try/catch syntax (#13732)
Update try/catch syntax to prepare for eslint migration
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ export const TwoFactorAuthenticationSetupForSettingsEffect = () => {
|
||||
initiateOTPProvisioningResult.data
|
||||
.initiateOTPProvisioningForAuthenticatedUser.uri,
|
||||
);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
enqueueErrorSnackBar({
|
||||
message: t`Two factor authentication provisioning failed.`,
|
||||
options: {
|
||||
|
||||
+1
-1
@@ -190,7 +190,7 @@ export const useTwoFactorVerificationForSettings = () => {
|
||||
});
|
||||
|
||||
await handleVerificationSuccess();
|
||||
} catch (error) {
|
||||
} catch {
|
||||
enqueueErrorSnackBar({
|
||||
message: t`Invalid verification code. Please try again.`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user