diff --git a/lib/workers/branch/auto-replace.ts b/lib/workers/branch/auto-replace.ts
index d7b0a4caacca6fed83b9bf216f17a93280cf0b7a..6b5afb68408dde98efac8a3dfa727bbeb3f07ef1 100644
--- a/lib/workers/branch/auto-replace.ts
+++ b/lib/workers/branch/auto-replace.ts
@@ -25,7 +25,7 @@ export async function confirmIfDepUpdated(
   if (
     newUpgrade &&
     newUpgrade.currentValue === newValue &&
-    (!newUpgrade.currentDigest || newUpgrade.currentDigest === newDigest)
+    (!newDigest || newUpgrade.currentDigest === newDigest)
   ) {
     return true;
   }