Skip to content

Commit

Permalink
Properly respect SMF peacockIntegration key (thepeacockproject#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
atampy25 committed May 9, 2024
1 parent 9479e2d commit 7d90f3e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions components/smfSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,10 @@ export class SMFSupport {
for (const contractData of Object.values(
lastServerSideData.contracts,
)) {
this.controller.addMission(contractData)
if (contractData.SMF?.destinations?.peacockIntegration !== false) {
this.controller.addMission(contractData)

if (contractData.SMF?.destinations?.addToDestinations) {
if (
contractData.SMF.destinations.peacockIntegration !== false
) {
if (contractData.SMF?.destinations?.addToDestinations) {
this.handleDestination(contractData)
}
}
Expand Down

0 comments on commit 7d90f3e

Please sign in to comment.