Skip to content

Commit fb6fabd

Browse files
Merge pull request #2033 from breatheco-de/main
Merge main to dev
2 parents e43d021 + 17f1be9 commit fb6fabd

File tree

6 files changed

+9
-27
lines changed

6 files changed

+9
-27
lines changed

public/locales/es/navbar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"description": "",
8484
"subMenu": [
8585
{
86-
"href": "es/beyond-the-resume",
86+
"href": "/es/beyond-the-resume",
8787
"label": "Más allá del currículum"
8888
}
8989
]

src/pages/api/robots.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default function handler(req, res) {
66
if (vercelEnv === 'production') {
77
res.end(`User-agent: *
88
Allow: /
9+
Disallow: /ask.4geeks.com/
10+
Disallow: /ask2.4geeks.com/
911
Disallow: /static/
1012
Disallow: /_next/
1113
Disallow: /*.json$

src/pages/bootcamp/[course_slug].jsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -283,19 +283,8 @@ function CoursePage() {
283283
{allDiscounts.length > 0 && '🔥'}
284284
{featurePrice}
285285
</Text>
286-
{!featuredPlanToEnroll?.isFreeTier && (
287-
<Flex alignItems="center" marginTop="5px" gap="5px" justifyContent="center">
288-
<Icon icon="shield" color="#ffffff" secondColor={courseColor || '#00b765'} width="23px" />
289-
<Text fontSize="13px" fontWeight="medium" paddingTop="2px">
290-
{t('common:money-back-guarantee-no-link')}
291-
</Text>
292-
</Flex>
293-
)}
294286
</Flex>
295287
</Button>
296-
{!featuredPlanToEnroll?.isFreeTier && (
297-
<Text fontSize="11px" color="gray.500" textAlign="center" marginTop="6px" dangerouslySetInnerHTML={{ __html: t('common:money-back-guarantee-conditions-link') }} />
298-
)}
299288
{isAuthenticated ? (
300289
<Text size="13px" padding="4px 8px" borderRadius="4px" background={featuredColor}>
301290
{t('signup:switch-user-connector', { name: user?.first_name })}

src/pages/bootcamp/useBootcamp.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ export const useBootcamp = () => {
145145
},
146146
});
147147
setIsFetching(true);
148-
bc.cohort().join(cohortId)
148+
bc.admissions().joinCohort(cohortId)
149149
.then(async (resp) => {
150-
const dataRequested = await resp.json();
150+
const dataRequested = await resp.data;
151151
if (dataRequested?.status === 'ACTIVE') {
152152
setReadyToRefetch(true);
153153
}
@@ -174,7 +174,8 @@ export const useBootcamp = () => {
174174
router.push('#pricing');
175175
}
176176
})
177-
.catch(() => {
177+
.catch((err) => {
178+
console.log(err);
178179
setTimeout(() => {
179180
setIsFetching(false);
180181
}, 600);

src/pages/checkout/index.jsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,7 @@ function Checkout() {
351351
</Flex>
352352
)}
353353
</Flex>
354-
{!originalPlan?.isTrial && (
355-
<Flex flexDirection="column" alignItems="flex-start" marginTop="5px" gap="5px">
356-
<Flex alignItems="center" gap="5px">
357-
<Icon icon="shield" width="23px" />
358-
<Text fontSize="13px" fontWeight="medium" paddingTop="2px" color="green.400" lineHeight="normal">
359-
{t('common:money-back-guarantee-no-link')}
360-
</Text>
361-
</Flex>
362-
<Text fontSize="11px" color="gray.500" marginLeft="28px" marginTop="2px" dangerouslySetInnerHTML={{ __html: t('common:money-back-guarantee-conditions-link') }} />
363-
</Flex>
364-
)}
354+
365355
</Flex>
366356
</Flex>
367357
<Divider borderBottomWidth="2px" />

src/utils/cohorts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const getActiveCohorts = (cohorts) => cohorts.filter((cohort) => {
189189
'NOT_COMPLETING',
190190
].includes(programCohortStage);
191191

192-
const cohortIsAvailable = showCohort && !hasEnded;
192+
const cohortIsAvailable = (showCohort && !hasEnded) || educationalStatus === 'NOT_COMPLETING';
193193
const isNotHiddenOnPrework = programCohortStage === 'PREWORK'
194194
&& cohort.is_hidden_on_prework === false
195195
&& !hasEnded;

0 commit comments

Comments
 (0)