diff --git a/src/components/communitySettings/communityPlatforms/TcDiscordIntegrationSettingsDialog.tsx b/src/components/communitySettings/communityPlatforms/TcDiscordIntegrationSettingsDialog.tsx index 5fdb031f..377ed5a3 100644 --- a/src/components/communitySettings/communityPlatforms/TcDiscordIntegrationSettingsDialog.tsx +++ b/src/components/communitySettings/communityPlatforms/TcDiscordIntegrationSettingsDialog.tsx @@ -37,7 +37,7 @@ function TcDiscordIntegrationSettingsDialog({ const { retrievePlatformProperties, patchPlatformById, deletePlatform } = useAppStore(); - const [isFetchingIntialData, setIsFetchingIntialData] = + const [isFetchingInitialData, setIsFetchingInitialData] = useState(true); const [open, setOpen] = useState(false); const [loading, setLoading] = useState(false); @@ -63,16 +63,16 @@ function TcDiscordIntegrationSettingsDialog({ }, []); useEffect(() => { - const discordPlatformIsFetchingIntialData = community?.platforms + const discordPlatformIsFetchingInitialData = community?.platforms .filter( (platform) => platform.disconnectedAt === null && platform.name === 'discord' ) - .map((platform) => platform.metadata?.isFetchingIntialData)[0]; + .map((platform) => platform.metadata?.isFetchingInitialData)[0]; - setIsFetchingIntialData( - discordPlatformIsFetchingIntialData - ? discordPlatformIsFetchingIntialData + setIsFetchingInitialData( + discordPlatformIsFetchingInitialData + ? discordPlatformIsFetchingInitialData : false ); }, [community]); @@ -269,7 +269,7 @@ function TcDiscordIntegrationSettingsDialog({ onClick={() => setOpen(false)} /> - {isFetchingIntialData ? ( + {isFetchingInitialData ? (
@@ -455,7 +455,7 @@ function TcDiscordIntegrationSettingsDialog({ handlePatchDiscordIntegrationSettings()} /> diff --git a/src/utils/interfaces.ts b/src/utils/interfaces.ts index 78a94680..d6ec87e3 100644 --- a/src/utils/interfaces.ts +++ b/src/utils/interfaces.ts @@ -181,7 +181,7 @@ export interface ICommunityDiscordPlatfromProps { permissions: Permissions; analyzerStartedAt?: string; isInProgress?: boolean; - isFetchingIntialData?: boolean; + isFetchingInitialData?: boolean; }; disconnectedAt: string | null; }