Skip to content
Snippets Groups Projects
Commit 00cf9fbc authored by xaralis's avatar xaralis
Browse files

fix: forgotten jitsiPopupDismissed store prop

parent 7821118a
No related branches found
No related tags found
No related merge requests found
Pipeline #1926 passed
...@@ -8,7 +8,7 @@ import { useActionState } from "hooks"; ...@@ -8,7 +8,7 @@ import { useActionState } from "hooks";
import { AuthStore } from "stores"; import { AuthStore } from "stores";
const JitsiInviteCard = () => { const JitsiInviteCard = () => {
const { showJitsiInvitePopup, jitsiPopupDimissed } = AuthStore.useState(); const { showJitsiInvitePopup, jitsiPopupDismissed } = AuthStore.useState();
const [loading, errorMessage] = useActionState(loadMe); const [loading, errorMessage] = useActionState(loadMe);
const openJitsiWindow = async () => { const openJitsiWindow = async () => {
...@@ -19,13 +19,13 @@ const JitsiInviteCard = () => { ...@@ -19,13 +19,13 @@ const JitsiInviteCard = () => {
} }
AuthStore.update((state) => { AuthStore.update((state) => {
state.jitsiPopupDimissed = true; state.jitsiPopupDismissed = true;
}); });
}; };
const dismissPopup = () => { const dismissPopup = () => {
AuthStore.update((state) => { AuthStore.update((state) => {
state.jitsiPopupDimissed = true; state.jitsiPopupDismissed = true;
}); });
}; };
...@@ -33,7 +33,7 @@ const JitsiInviteCard = () => { ...@@ -33,7 +33,7 @@ const JitsiInviteCard = () => {
return null; return null;
} }
if (jitsiPopupDimissed) { if (jitsiPopupDismissed) {
return ( return (
<Button <Button
color="violet-500" color="violet-500"
......
...@@ -16,6 +16,7 @@ export const GlobalInfoStore = new Store(globalInfoStoreInitial); ...@@ -16,6 +16,7 @@ export const GlobalInfoStore = new Store(globalInfoStoreInitial);
const authStoreInitial = { const authStoreInitial = {
isAuthenticated: false, isAuthenticated: false,
showJitsiInvitePopup: false, showJitsiInvitePopup: false,
jitsiPopupDismissed: false,
}; };
export const AuthStore = new Store(authStoreInitial); export const AuthStore = new Store(authStoreInitial);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment