diff --git a/package.json b/package.json index 03b5a316..04620d50 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "react-icons": "^5.5.0", "sanitize-html": "^2.14.0", "sharp": "^0.33.5", - "sonner": "^2.0.0", + "sonner": "^2.0.1", "swr": "^2.3.2", "ts-exif-parser": "^0.2.2", "use-debounce": "^10.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 18d3eb15..38df3f62 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,8 +96,8 @@ importers: specifier: ^0.33.5 version: 0.33.5 sonner: - specifier: ^2.0.0 - version: 2.0.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + specifier: ^2.0.1 + version: 2.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0) swr: specifier: ^2.3.2 version: 2.3.2(react@19.0.0) @@ -3859,8 +3859,8 @@ packages: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} - sonner@2.0.0: - resolution: {integrity: sha512-3WeSl3WrEdhmdiTniT8JsCiVRVDOdn7k+4MG2drqzSMOeqrExm03HIwDBPKuq52JBqL7wRLG17QBIiSleUbljw==} + sonner@2.0.1: + resolution: {integrity: sha512-FRBphaehZ5tLdLcQ8g2WOIRE+Y7BCfWi5Zyd8bCvBjiW8TxxAyoWZIxS661Yz6TGPqFQ4VLzOF89WEYhfynSFQ==} peerDependencies: react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc @@ -8805,7 +8805,7 @@ snapshots: slash@3.0.0: {} - sonner@2.0.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + sonner@2.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: react: 19.0.0 react-dom: 19.0.0(react@19.0.0) diff --git a/src/photo/form/PhotoForm.tsx b/src/photo/form/PhotoForm.tsx index d79875a7..cd6e7e0e 100644 --- a/src/photo/form/PhotoForm.tsx +++ b/src/photo/form/PhotoForm.tsx @@ -101,19 +101,9 @@ export default function PhotoForm({ if (changedKeys.length > 0) { const fields = convertFormKeysToLabels(changedKeys); - // Delay toasts to avoid render sync issue - const timeout = setTimeout( - () => toastSuccess(`Updated EXIF fields: ${fields.join(', ')}`, 8000), - 100, - ); - return () => clearTimeout(timeout); + toastSuccess(`Updated EXIF fields: ${fields.join(', ')}`, 8000); } else { - // Delay toasts to avoid render sync issue - const timeout = setTimeout( - () => toastWarning('No new EXIF data found'), - 100, - ); - return () => clearTimeout(timeout); + toastWarning('No new EXIF data found'); } } }, [updatedExifData]); diff --git a/src/platforms/fujifilm/index.ts b/src/platforms/fujifilm/index.ts index 133e3b1e..aab37fa6 100644 --- a/src/platforms/fujifilm/index.ts +++ b/src/platforms/fujifilm/index.ts @@ -60,7 +60,7 @@ export const parseFujifilmMakerNote = ( }; switch (tagType) { - // Int8 (UInt8 read as Int8) + // Int8 (UInt8 read as Int8 according to spec) case 1: sendNumbersForDataType(offset => bytes.readInt8(offset), 1); break;