diff --git a/frontend/src/hooks/offramp/useRampService/useRegisterRamp.ts b/frontend/src/hooks/offramp/useRampService/useRegisterRamp.ts index 0c3ac7311..c17451420 100644 --- a/frontend/src/hooks/offramp/useRampService/useRegisterRamp.ts +++ b/frontend/src/hooks/offramp/useRampService/useRegisterRamp.ts @@ -112,6 +112,13 @@ export const useRegisterRamp = () => { // Check if we can proceed with the registration process const lockResult = checkLock(); if (!lockResult.canProceed) { + // Alternatively release locks if process was cancelled + // This will NOT clean the localStorage right after the process is cancelled + // but rather on the first checkLock() call after confirmation. + if (!rampStarted){ + releaseSigningLock(); + releaseLock(); + } return; }