Skip to content

Commit

Permalink
fix(table): add missing brackets. (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
square-li committed Sep 13, 2022
1 parent 5ca810f commit 5c5ec7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/table/src/utils/tableHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export const getDefaultColumnDefinitions: (
if (typeof value === 'number') {
return (
<div className="iot-table-cell" style={{ color }}>
{icon ? <div className="icon">getIcons(icon)</div> : null} {round(value)}
{icon ? <div className="icon">{getIcons(icon)}</div> : null} {round(value)}
</div>
);
}
return (
<div className="iot-table-cell" style={{ color }}>
{icon ? <div className="icon">getIcons(icon)</div> : null} {value}
{icon ? <div className="icon">{getIcons(icon)}</div> : null} {value}
</div>
);
},
Expand Down

0 comments on commit 5c5ec7b

Please sign in to comment.