chore: pr feedback

This commit is contained in:
Jason Rasmussen
2025-02-14 11:36:01 -05:00
parent 9cd0871178
commit 6a4f48204d
2 changed files with 10 additions and 3 deletions

View File

@@ -60,8 +60,12 @@
};
const handleRotate = async () => {
const current = Number(asset.exifInfo?.orientation);
if (!current && current !== 0) {
if (!asset.exifInfo?.orientation) {
return;
}
const current = Number(asset.exifInfo.orientation);
if (Number.isNaN(current)) {
return;
}