From a47eda375ad8eaeadbc7dd3374a7738a748e6a7b Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Fri, 8 Dec 2023 01:56:44 +0100 Subject: [PATCH] fix: fix recipe name in error message --- lib/build/multifactorauth-shared.js | 2 +- lib/ts/recipe/multifactorauth/recipe.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build/multifactorauth-shared.js b/lib/build/multifactorauth-shared.js index 8832912d9..eb4c9ac84 100644 --- a/lib/build/multifactorauth-shared.js +++ b/lib/build/multifactorauth-shared.js @@ -276,7 +276,7 @@ var MultiFactorAuth = /** @class */ (function (_super) { }; MultiFactorAuth.getInstanceOrThrow = function () { if (MultiFactorAuth.instance === undefined) { - var error = "No instance of EmailVerification found. Make sure to call the EmailVerification.init method."; + var error = "No instance of MultiFactorAuth found. Make sure to call the MultiFactorAuth.init method."; // eslint-disable-next-line supertokens-auth-react/no-direct-window-object if (typeof window === "undefined") { error = error + genericComponentOverrideContext.SSR_ERROR; diff --git a/lib/ts/recipe/multifactorauth/recipe.tsx b/lib/ts/recipe/multifactorauth/recipe.tsx index 58a80806c..a7bb5ceae 100644 --- a/lib/ts/recipe/multifactorauth/recipe.tsx +++ b/lib/ts/recipe/multifactorauth/recipe.tsx @@ -115,7 +115,7 @@ export default class MultiFactorAuth extends RecipeModule< static getInstanceOrThrow(): MultiFactorAuth { if (MultiFactorAuth.instance === undefined) { - let error = "No instance of EmailVerification found. Make sure to call the EmailVerification.init method."; + let error = "No instance of MultiFactorAuth found. Make sure to call the MultiFactorAuth.init method."; // eslint-disable-next-line supertokens-auth-react/no-direct-window-object if (typeof window === "undefined") {