Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Avatar({
const initials = getInitials(firstName, lastName);

return (
<AvatarTag pickVariant={ pickVariant } { ...rest } firstName={ firstName } tagName="div">
<AvatarTag transparent={ !!src } pickVariant={ pickVariant } { ...rest } firstName={ firstName } tagName="div">
{
src ? <AvatarImgTag modifiers={ rest } tagName="img" src={ src } /> : initials
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const [AvatarTag, themeAvatar] = createThemeTag(name, ({ COLORS }: *) => ({
justifyContent: 'center',
alignItems: 'center',
position: 'relative',
backgroundColor: getBackgroundColorByName(props.firstName),
backgroundColor: props.transparent ? 'transparent' : getBackgroundColorByName(props.firstName),
color: COLORS.WHITE,
fontWeight: 600,
}),
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/TableBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class TableBuilder extends PureComponent<TableBulderProps, TableBuilderState> {
renderContent = () => {
const { groupBy, data, renderGroupTitle } = this.props;

if (groupBy && typeof groupBy === 'function') {
if (data && data.length !== 0 && groupBy && typeof groupBy === 'function') {

const groupedData = groupBy(data) || {};
return (
Expand Down