Skip to content

Commit

Permalink
Update OpenWithLearnpackCTA.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygonzaleza authored Oct 23, 2024
1 parent fe392a3 commit 18c8fd5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/js_modules/syllabus/OpenWithLearnpackCTA.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function OpenWithLearnpackCTA({ currentAsset, variant }) {
</PopoverTrigger>
<ProvisioningPopover openInLearnpackAction={openInLearnpackAction} provisioningLinks={provisioningLinks} />
</Popover>,
].sort((a,b) => {
].sort((a, b) => {
if (a > b) return cohortSession.available_as_saas;
return -1;
})}
Expand Down Expand Up @@ -178,11 +178,10 @@ function OpenWithLearnpackCTA({ currentAsset, variant }) {
fontSize="17px"
>
{t('common:learnpack.open-locally')}
</Button>].sort((a,b) => {
if (a > b) return cohortSession.available_as_saas;
return -1
})
}
</Button>].sort((a, b) => {
if (a > b) return cohortSession.available_as_saas;
return -1;
})}
</Box>
</Box>
<ModalToCloneProject currentAsset={currentAsset} isOpen={showCloneModal} onClose={setShowCloneModal} />
Expand Down

0 comments on commit 18c8fd5

Please sign in to comment.