Skip to content

Commit

Permalink
fix: Remove model in lens model (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhea-so committed Apr 12, 2024
2 parents d7cca47 + 2949b95 commit b48d460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/core/exif-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ExifMetadata {
console.log(metadata);
this.make = metadata?.Make?.description;
this.model = metadata?.Model?.description;
this.lensModel = metadata?.LensModel?.description;
this.lensModel = this.model ? metadata?.LensModel?.description?.replace(this.model, '')?.trim() : metadata?.LensModel?.description;
this.focalLength = metadata?.FocalLength?.description?.replace(' mm', 'mm');
this.fNumber = metadata?.FNumber?.description;
this.iso = metadata?.ISOSpeedRatings?.value?.toString();
Expand Down

0 comments on commit b48d460

Please sign in to comment.