diff --git a/serve/invite.html b/serve/invite.html index 07f274495..74d4f1467 100644 --- a/serve/invite.html +++ b/serve/invite.html @@ -48,13 +48,13 @@ const firebaseConfig = window["env"]?.REACT_APP_FIREBASE_CONFIG && JSON.parse(window["env"].REACT_APP_FIREBASE_CONFIG); - const rediretPath = window.location.pathname.replace( + const redirectPath = window.location.pathname.replace( "/invite", "/home" ); const getDynamicLink = (to, fallback = true) => { const { host, androidPacakgeName, iosAppBundleId, appStoreId } = - firebaseConfig?.dinamicLink || {}; + firebaseConfig?.dynamicLink || {}; const { origin } = window.location; if (!host) return `${origin}${to}`; diff --git a/src/tools/trans.js b/src/tools/trans.js index 4777e76ec..9ac78c1d6 100644 --- a/src/tools/trans.js +++ b/src/tools/trans.js @@ -4,7 +4,7 @@ const getS3Url = (x) => `${s3BaseUrl}${x}`; const getDynamicLink = (to, fallback = true) => { const { host, androidPacakgeName, iosAppBundleId, appStoreId } = - firebaseConfig?.dinamicLink || {}; + firebaseConfig?.dynamicLink || {}; const { origin } = window.location; if (!host) return `${origin}${to}`; diff --git a/src/types/env.d.ts b/src/types/env.d.ts index af2c0c1be..d5b76d6c5 100644 --- a/src/types/env.d.ts +++ b/src/types/env.d.ts @@ -18,7 +18,7 @@ export type FirebaseConfig = { messagingSenderId: string; appId: string; measurementId: string; - dinamicLink: { + dynamicLink: { host: string; androidPacakgeName: string; iosAppBundleId: string;