Skip to content

Commit

Permalink
fix: svg inscriptions preview
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Feb 10, 2024
1 parent 3183b8b commit 787c03a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shared/models/inscription.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ export function whenInscriptionType<T>(
return branches.html();
}

if (mimeType.startsWith('image/') && branches.image) {
return branches.image();
}

if (mimeType.startsWith('image/svg') && branches.svg) {
return branches.svg();
}

if (mimeType.startsWith('image/') && branches.image) {
return branches.image();
}

if (mimeType.startsWith('text') && branches.text) {
return branches.text();
}
Expand Down

0 comments on commit 787c03a

Please sign in to comment.