fix: use inequality instead of greater than for timestamp check
Addresses PR feedback to rely on timestamp inequality since it is more robust to clock issues and timestamp resolution when saving on the backend.
This commit is contained in:
+1
-1
@@ -433,7 +433,7 @@ export function App() {
|
|||||||
if (
|
if (
|
||||||
activeDrawing &&
|
activeDrawing &&
|
||||||
loadedUpdatedAtRef.current &&
|
loadedUpdatedAtRef.current &&
|
||||||
activeDrawing.updatedAt > loadedUpdatedAtRef.current &&
|
activeDrawing.updatedAt !== loadedUpdatedAtRef.current &&
|
||||||
!inFlightSaveRef.current &&
|
!inFlightSaveRef.current &&
|
||||||
!inFlightTitleSaveRef.current
|
!inFlightTitleSaveRef.current
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user