Skip to content

Commit 7100d14

Browse files
authored
Merge pull request #14026 from bbc/fix-data-passing-in-headtohead-storybook
NOTICKET Fix passing through of data in /head-to-head-v2/storybook/helpers
2 parents ebdd6d9 + 8615c87 commit 7100d14

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • src/app/components-webcore/SportDataHeader/head-to-head-v2/storybook/helpers

src/app/components-webcore/SportDataHeader/head-to-head-v2/storybook/helpers/base-component.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,12 @@ const buildTeamObject = ({
3636
alignment: 'home' | 'away';
3737
data: HeadToHeadV2Data;
3838
}): Team => {
39-
const { runningScore } = data[alignment];
40-
4139
return {
42-
id: data[alignment].id,
40+
...data[alignment],
4341
fullName: team,
4442
shortName: shortNamesMap(team),
4543
urn: `urn:bbc:sportsdata:football:team:${team.toLowerCase().split(' ').join('-')}`,
4644
actions,
47-
runningScore,
4845
...(score && { score, scoreUnconfirmed }),
4946
};
5047
};

0 commit comments

Comments
 (0)