Skip to content

Commit 794e1d3

Browse files
author
Working On It
committed
fix: default avatar and text are always showed at first (casibase#1300)
1 parent ae14d6d commit 794e1d3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

web/src/chat/WelcomeHeader.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@
1414

1515
import React from "react";
1616
import {Welcome} from "@ant-design/x";
17-
import * as Setting from "../Setting";
18-
import i18next from "i18next";
1917

2018
const WelcomeHeader = ({store}) => {
21-
const avatar = store?.avatar || Setting.AiAvatar;
19+
const avatar = store?.avatar || null;
2220

2321
return (
2422
<Welcome
2523
variant="borderless"
2624
icon={avatar}
27-
title={store?.welcomeTitle || i18next.t("chat:Hello, I'm Casibase AI Assistant")}
28-
description={store?.welcomeText || i18next.t("chat:I'm here to help answer your questions")}
25+
title={store?.welcomeTitle || null}
26+
description={store?.welcomeText || null}
2927
/>
3028
);
3129
};

0 commit comments

Comments
 (0)