We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c777a6 commit d58110fCopy full SHA for d58110f
1 file changed
src/hooks/useRestartOnOdometerImagesFailure/index.ts
@@ -70,12 +70,8 @@ const useRestartOnOdometerImagesFailure = (
70
},
71
].filter(({path}) => !!path && path.startsWith('blob:'));
72
73
- if (urlsToCheck.length === 0) {
74
- // No stale blobs at mount = later additions are session-fresh
75
- setAsyncVerificationPassed(true);
76
- return;
77
- }
78
-
+ // Empty urlsToCheck flows through Promise.all -> [].every(Boolean) === true -> marks verification passed
+ // Later blob additions (draft hydration, fresh capture) are minted in this session and stay trusted
79
Promise.all(
80
urlsToCheck.map(
81
({filename, path, type}) =>
0 commit comments