Skip to content
Snippets Groups Projects
Unverified Commit 91f17f4d authored by Martin Schoeler's avatar Martin Schoeler Committed by GitHub
Browse files

[FIX] Agent status offline and wrong i18n key (#19199)

parent fe0c27ab
No related merge requests found
......@@ -38,9 +38,10 @@ export const AgentInfo = React.memo(function AgentInfo({
const {
username,
statusLivechat,
status: userStatus,
} = user;
const status = UserStatus.getStatus(data.status);
const status = UserStatus.getStatus(userStatus);
return <VerticalBar.ScrollableContent p='x24' {...props}>
......@@ -54,7 +55,7 @@ export const AgentInfo = React.memo(function AgentInfo({
<UserInfo.Username name={username} status={status} />
{statusLivechat && <>
<UserInfo.Label>{t('Livechat_Status')}</UserInfo.Label>
<UserInfo.Label>{t('Livechat_status')}</UserInfo.Label>
<UserInfo.Info>{t(statusLivechat)}</UserInfo.Info>
</>}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment