Skip to content

Commit 93a0a90

Browse files
committed
Add comment
1 parent eda3f0f commit 93a0a90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dotcom-rendering/src/model/enhanceCards.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ export const getActiveMediaAtom = (
211211
cardTrailImage,
212212
);
213213

214+
/**
215+
* Each version of a media atom will contain assets for self-hosted OR YouTube, but not both.
216+
* Therefore, we check the platform of the first asset and assume the rest are the same.
217+
*/
214218
if (assets[0]?.platform === 'Url') {
215219
/**
216220
* Take one source for each supported video file type.

0 commit comments

Comments
 (0)