Skip to content

Commit

Permalink
fix: use chatbot name
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Jan 15, 2024
1 parent 934d5db commit 21fcc29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
VITE_GRAASP_APP_KEY: ${{ secrets.APP_KEY }}
VITE_SENTRY_ENV: staging
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
VITE_VERSION: ${{ github.event.client_payload.tag }}
VITE_VERSION: ${{ github.event.client_payload.tag || inputs.tag }}
# add any env variable needed by your app here
run: yarn build
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion src/modules/common/ChatbotPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const ChatbotPrompt = ({ id }: Props): JSX.Element | null => {
<Alert severity="warning">{t('CHATBOT_CONFIGURATION_MISSING')}</Alert>
);
}
const chatbotName = chatbotPrompt?.data?.chatbotName || DEFAULT_BOT_USERNAME;

// display only if real chatbot prompt does not exist yet
if (!realChatbotPromptExists) {
Expand All @@ -154,7 +155,7 @@ const ChatbotPrompt = ({ id }: Props): JSX.Element | null => {
data-cy={buildChatbotPromptContainerDataCy(chatbotPrompt.id)}
>
<CardHeader
title={DEFAULT_BOT_USERNAME}
title={chatbotName}
subheader={t('JUST_NOW_COMMENT_HEADER')}
avatar={<ChatbotAvatar />}
/>
Expand Down

0 comments on commit 21fcc29

Please sign in to comment.