diff --git a/ui/src/components/DestinationStack/index.tsx b/ui/src/components/DestinationStack/index.tsx
index 538011d71..fa5ed3ea5 100644
--- a/ui/src/components/DestinationStack/index.tsx
+++ b/ui/src/components/DestinationStack/index.tsx
@@ -163,8 +163,8 @@ const DestinationStackComponent = ({
//Check for migration Status and lock.
// Status where Migration is to be Locked:
setIsMigrationLocked(
- projectData.status === PROJECT_STATUS.INPROGRESS ||
- projectData.status === PROJECT_STATUS.SUCCESS
+ projectData?.status === 2 ||
+ projectData?.status === 5
);
};
fetchCMSData();
diff --git a/ui/src/components/LegacyCms/Actions/LoadPrefix.tsx b/ui/src/components/LegacyCms/Actions/LoadPrefix.tsx
index 2d1addbec..e308b6cf9 100644
--- a/ui/src/components/LegacyCms/Actions/LoadPrefix.tsx
+++ b/ui/src/components/LegacyCms/Actions/LoadPrefix.tsx
@@ -128,6 +128,7 @@ const LoadPreFix = (props: LoadSelectCmsProps) => {
version="v2"
error={isError}
/>
+ {isError &&
Affix should not be more than 5 chars
}