Skip to content

Commit

Permalink
fix: correctly apply provided format to <NuxtPicture> (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
th3r3alandr3 committed May 26, 2023
1 parent 2abef1b commit 6f64d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/nuxt-picture.ts
Expand Up @@ -22,7 +22,7 @@ export default defineComponent({

const originalFormat = computed(() => getFileExtension(props.src))

const format = computed(() => props.format || originalFormat.value === 'svg' ? 'svg' : 'webp')
const format = computed(() => props.format || (originalFormat.value === 'svg' ? 'svg' : 'webp'))

const legacyFormat = computed(() => {
if (props.legacyFormat) { return props.legacyFormat }
Expand Down

0 comments on commit 6f64d8f

Please sign in to comment.