diff --git a/libs/portals/admin/regulations-admin/src/components/impacts/EditChange.tsx b/libs/portals/admin/regulations-admin/src/components/impacts/EditChange.tsx index 5610b4fbccc2..604120d52675 100644 --- a/libs/portals/admin/regulations-admin/src/components/impacts/EditChange.tsx +++ b/libs/portals/admin/regulations-admin/src/components/impacts/EditChange.tsx @@ -240,11 +240,17 @@ export const EditChange = (props: EditChangeProp) => { return `
${diff}
` as HTMLText } + const noChange = dirtyClean(previous) === dirtyClean(current) + if (noChange) { + // If the appendix has no changes + return undefined + } + if (diff) { // If the appendix has changes return diff } else { - // If the appendix has no changes + // If the appendix has no diff return undefined } }