Skip to content

Commit

Permalink
fix: FocalLength parsing (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
정현 committed Mar 31, 2024
2 parents 9e287dd + 3ada957 commit 294918b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/domain/photo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Photo {
}

public get focalLength(): string {
return `${this.metadata.FocalLength?.description.split(' ')[0] ?? '?'}mm`;
return `${Number(this.metadata.FocalLength?.description.split('mm')[0]) || '?'}mm`;
}

public get iso(): string {
Expand Down

0 comments on commit 294918b

Please sign in to comment.