Fix Profile Viewer text (#1357)
If you only had a single session open, the Profile Viewer would've said "View 1 sessions" instead of "View 1 session."
This commit is contained in:
parent
3c60976efa
commit
1adee07127
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ function SessionInfo({ userId }) {
|
|||
onClick={() => setIsVisible(!isVisible)}
|
||||
iconSrc={isVisible ? ChevronBottomIC : ChevronRightIC}
|
||||
>
|
||||
<Text variant="b2">{`View ${devices?.length > 0 ? `${devices.length} ` : ''}sessions`}</Text>
|
||||
<Text variant="b2">{`View ${devices?.length > 0 ? `${devices.length} ${devices.length == 1 ? 'session' : 'sessions'}` : 'sessions'}`}</Text>
|
||||
</MenuItem>
|
||||
{renderSessionChips()}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue