Update try/catch syntax (#13732)

Update try/catch syntax to prepare for eslint migration
This commit is contained in:
Félix Malfait
2025-08-07 22:19:43 +02:00
committed by GitHub
parent 4baabd80ef
commit b44b46109c
67 changed files with 101 additions and 101 deletions
@@ -45,7 +45,7 @@ export const TwoFactorAuthenticationSetupForSettingsEffect = () => {
initiateOTPProvisioningResult.data
.initiateOTPProvisioningForAuthenticatedUser.uri,
);
} catch (error) {
} catch {
enqueueErrorSnackBar({
message: t`Two factor authentication provisioning failed.`,
options: {
@@ -190,7 +190,7 @@ export const useTwoFactorVerificationForSettings = () => {
});
await handleVerificationSuccess();
} catch (error) {
} catch {
enqueueErrorSnackBar({
message: t`Invalid verification code. Please try again.`,
});