Random TGUI fix, display placeholder user image for IDs without pictures

This commit is contained in:
ShadowLarkens
2020-08-18 14:08:38 -07:00
parent 61faa8057c
commit 79dcccedc0
2 changed files with 19 additions and 15 deletions
+12 -8
View File
@@ -158,14 +158,18 @@ export const IDCard = (props, context) => {
overflow: "hidden",
outline: "2px solid #4972a1",
}}>
<img
src={photo_front.substr(1, photo_front.length - 1)}
style={{
width: '300px',
'margin-left': '-94px',
'-ms-interpolation-mode': 'nearest-neighbor',
}}
/>
{photo_front && (
<img
src={photo_front.substr(1, photo_front.length - 1)}
style={{
width: '300px',
'margin-left': '-94px',
'-ms-interpolation-mode': 'nearest-neighbor',
}}
/>
) || (
<Icon name="user" size={8} ml={1.5} mt={2.5} />
)}
</Box>
</Flex.Item>
<Flex.Item basis={0} grow={1}>
File diff suppressed because one or more lines are too long