summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/components/Picture.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/astro/components/Picture.astro b/packages/astro/components/Picture.astro
index f42846f18..adfc0fcab 100644
--- a/packages/astro/components/Picture.astro
+++ b/packages/astro/components/Picture.astro
@@ -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) {
@@ -74,7 +74,7 @@ if (fallbackImage.srcSet.values.length > 0) {
<source
srcset={srcsetAttribute}
type={'image/' + image.options.format}
- {...sourceAdditionaAttributes}
+ {...sourceAdditionalAttributes}
/>
);
})