Skip to content

Commit

Permalink
hotfix add bot modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamperoyge committed Jan 30, 2024
1 parent 383c70e commit 3f6ec96
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions wondrous-bot-admin/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ const HomePage = () => {
telegramConfigData?.getTelegramConfigForOrg?.chatId,
]);

const hasShownModal = useMemo(() => localStorage.getItem("wndr-show-connectingModal"), []);

const shouldDisplayAddModal = useMemo(() => {
if (isTelegramConfigLoading || isDiscordConfigLoading || loading) return false;
Expand All @@ -209,15 +208,11 @@ const HomePage = () => {
if (!discordConfigExists && !telegramConfigExists && openAddBotModal) {
return true;
}
if ((discordConfigExists || telegramConfigExists) && openAddBotModal && !hasShownModal) {
return true;
}
return false;
}, [
orgDiscordConfig,
telegramConfigData,
openAddBotModal,
hasShownModal,
isDiscordConfigLoading,
isTelegramConfigLoading,
loading,
Expand Down

0 comments on commit 3f6ec96

Please sign in to comment.