fixed bug with 0 stick sens not showing

This commit is contained in:
Sendou 2020-03-16 11:43:14 +02:00
parent 2beef1d01d
commit 9007ac5b14

View File

@ -95,7 +95,7 @@ const AvatarWithInfo: React.FC<AvatarWithInfoProps> = ({ user, canEdit }) => {
</a>
</ListItem>
)}
{user.sens?.stick && (
{user.sens && (!!user.sens.stick || user.sens.stick === 0) && (
<ListItem>
<ListIcon icon={FaGamepad} />
{getSensString(user.sens.motion, user.sens.stick)}