correct ai assy language

This commit is contained in:
sebseb7
2026-03-31 10:19:47 +02:00
parent 9054c8d2fd
commit 18c528302d
2 changed files with 2 additions and 3 deletions

View File

@@ -385,7 +385,7 @@ class AddToCartButton extends Component {
startIcon={<ShoppingCartIcon />} startIcon={<ShoppingCartIcon />}
sx={{ sx={{
borderRadius: 2, borderRadius: 2,
fontWeight: "bold", whiteSpace: "nowrap",
backgroundColor: "#9ccc65", // yellowish green backgroundColor: "#9ccc65", // yellowish green
color: "#000000", color: "#000000",
"&:hover": { "&:hover": {
@@ -539,7 +539,6 @@ class AddToCartButton extends Component {
startIcon={<ShoppingCartIcon />} startIcon={<ShoppingCartIcon />}
sx={{ sx={{
borderRadius: 2, borderRadius: 2,
fontWeight: "bold",
whiteSpace: "nowrap", whiteSpace: "nowrap",
"&:hover": { "&:hover": {
backgroundColor: "primary.dark", backgroundColor: "primary.dark",

View File

@@ -228,7 +228,7 @@ class ChatAssistant extends Component {
}, () => { }, () => {
// Emit message to socket server after state is updated // Emit message to socket server after state is updated
if (userMessage.trim()) { if (userMessage.trim()) {
window.socketManager.emit('aiassyMessage', userMessage); window.socketManager.emit('aiassyMessage', { message: userMessage, lang: this.props.i18n?.language });
} }
}); });
} }