Skip to content

Commit

Permalink
chore: typo (#9988)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 authored Feb 6, 2024
1 parent 44c72a4 commit 6e30bef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/components/Picture.astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const fallbackImage = await getImage({
});
const imgAdditionalAttributes: HTMLAttributes<'img'> = {};
const sourceAdditionaAttributes: HTMLAttributes<'source'> = {};
const sourceAdditionalAttributes: HTMLAttributes<'source'> = {};
// Propagate the `sizes` attribute to the `source` elements
if (props.sizes) {
sourceAdditionaAttributes.sizes = props.sizes;
sourceAdditionalAttributes.sizes = props.sizes;
}
if (fallbackImage.srcSet.values.length > 0) {
Expand All @@ -74,7 +74,7 @@ if (fallbackImage.srcSet.values.length > 0) {
<source
srcset={srcsetAttribute}
type={'image/' + image.options.format}
{...sourceAdditionaAttributes}
{...sourceAdditionalAttributes}
/>
);
})
Expand Down

0 comments on commit 6e30bef

Please sign in to comment.