Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 212a5bc

Browse files
committed
fix error when modal doesnt not pop up
1 parent db4c8bf commit 212a5bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/domains/dashboard/components/migration-manager/migration-manager.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ const MigrationManager = () => {
9090
}
9191

9292
const isPromoEligibleForShow =
93-
cloudEnabled && migrationModalPromoInfo && isModalOpen && !hasPromoSelectionSaved
93+
cloudEnabled &&
94+
migrationModalPromoInfo &&
95+
isModalOpen &&
96+
(!hasPromoSelectionSaved || hasPromoSelectionSaved === "undefined")
9497

9598
const requestRefreshOfAccess = useRequestRefreshOfAccessMessage()
9699

0 commit comments

Comments
 (0)