Skip to content

Commit

Permalink
fix: put string inside Text
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 26, 2022
1 parent 2a91b1b commit 3481e50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ const Time: React.FC<{
return (
<Box>
{renderedTime}
{runTime < estimatedTime ? <>, estimated {estimatedTime}s</> : null}
{runTime < estimatedTime ? (
<Text>, estimated {estimatedTime}s</Text>
) : null}
</Box>
);
};

0 comments on commit 3481e50

Please sign in to comment.