diff --git a/src/containers/JitsiInviteCard.jsx b/src/containers/JitsiInviteCard.jsx index 2261334532d4094258fba8426685d37c5e0529b6..c298876306572a345681d149e5c4c10707b525b9 100644 --- a/src/containers/JitsiInviteCard.jsx +++ b/src/containers/JitsiInviteCard.jsx @@ -8,7 +8,7 @@ import { useActionState } from "hooks"; import { AuthStore } from "stores"; const JitsiInviteCard = () => { - const { showJitsiInvitePopup, jitsiPopupDimissed } = AuthStore.useState(); + const { showJitsiInvitePopup, jitsiPopupDismissed } = AuthStore.useState(); const [loading, errorMessage] = useActionState(loadMe); const openJitsiWindow = async () => { @@ -19,13 +19,13 @@ const JitsiInviteCard = () => { } AuthStore.update((state) => { - state.jitsiPopupDimissed = true; + state.jitsiPopupDismissed = true; }); }; const dismissPopup = () => { AuthStore.update((state) => { - state.jitsiPopupDimissed = true; + state.jitsiPopupDismissed = true; }); }; @@ -33,7 +33,7 @@ const JitsiInviteCard = () => { return null; } - if (jitsiPopupDimissed) { + if (jitsiPopupDismissed) { return ( <Button color="violet-500" diff --git a/src/stores.js b/src/stores.js index ef639cdf0967da211d67cd280a1b4169546642d2..731d36c01830aac73995e4ce9ed1f05ed6c0606c 100644 --- a/src/stores.js +++ b/src/stores.js @@ -16,6 +16,7 @@ export const GlobalInfoStore = new Store(globalInfoStoreInitial); const authStoreInitial = { isAuthenticated: false, showJitsiInvitePopup: false, + jitsiPopupDismissed: false, }; export const AuthStore = new Store(authStoreInitial);