Skip to content

Commit

Permalink
Update packages/integrations/image/src/get-image.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
Tony Sullivan and natemoo-re authored Jul 8, 2022
1 parent 4e8e621 commit b4169ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/image/src/get-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function resolveSize(transform: TransformOptions): TransformOptions {
aspectRatio = transform.aspectRatio;
} else {
const [width, height] = transform.aspectRatio.split(':');
aspectRatio = parseInt(width) / parseInt(height);
aspectRatio = Number.parseInt(width) / Number.parseInt(height);
}

if (transform.width) {
Expand Down

0 comments on commit b4169ac

Please sign in to comment.