Skip to content

Commit

Permalink
Add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Mar 21, 2024
1 parent 91df8cb commit 0c556ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export function App({ auth }: AppProps) {
</FrontendErrorBoundary>
</RsuiteCustomProvider>
{/* This script is used to inject the chat */}
<script async src={import.meta.env.FRONTEND_SMALL_CHAT_SNIPPET} />
{import.meta.env.FRONTEND_SMALL_CHAT_SNIPPET && (
<script async src={import.meta.env.FRONTEND_SMALL_CHAT_SNIPPET} />
)}
</ThemeProvider>
)
}

0 comments on commit 0c556ae

Please sign in to comment.