Merge pull request #15415 from JoVictorNunes/issue-15397

fix: breakout remaining time label
This commit is contained in:
Ramón Souza 2022-07-22 14:23:47 +01:00 committed by GitHub
commit 7c4457bfa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,11 +61,14 @@ class breakoutRemainingTimeContainer extends React.Component {
return null;
}
if (bold) {
const words = message.split(' ');
const time = words.pop();
const text = words.join(' ');
return (
<BreakoutRemainingTimeComponent>
<Text>{message.split(' ')[0]}</Text>
<Text>{text}</Text>
<br />
<Time>{message.split(' ')[1]}</Time>
<Time>{time}</Time>
</BreakoutRemainingTimeComponent>
);
}