Skip to content

Commit

Permalink
Merge pull request #34 from hive-one/prod-fixes
Browse files Browse the repository at this point in the history
mandatory calendar and conferencing app on prod, fix price per hour s…
  • Loading branch information
rishimohan authored Nov 14, 2023
2 parents c21b3c6 + f9a8f63 commit 459f985
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const UserProfile = () => {
const payload = {
bio: data?.bio,
adviceOn: data?.advises,
pricePerHour: data?.pricePerHour?.value,
pricePerHour: data?.pricePerHour?.value || data?.pricePerHour,
completedOnboarding: true,
};

Expand Down
30 changes: 16 additions & 14 deletions apps/web/pages/getting-started/[[...step]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,22 @@ const OnboardingPage = () => {
</Suspense>
</StepCard>

{headers[currentStepIndex]?.skipText && (
<div className="flex w-full flex-row justify-center">
<Button
color="minimal"
data-testid="skip-step"
onClick={(event) => {
event.preventDefault();
goToIndex(currentStepIndex + 1);
}}
className="mt-8 cursor-pointer px-4 py-2 font-sans text-sm font-medium">
{headers[currentStepIndex]?.skipText}
</Button>
</div>
)}
{process.env.NODE_ENV != "production"
? headers[currentStepIndex]?.skipText && (
<div className="flex w-full flex-row justify-center">
<Button
color="minimal"
data-testid="skip-step"
onClick={(event) => {
event.preventDefault();
goToIndex(currentStepIndex + 1);
}}
className="mt-8 cursor-pointer px-4 py-2 font-sans text-sm font-medium">
{headers[currentStepIndex]?.skipText}
</Button>
</div>
)
: ""}
</div>
</div>
</div>
Expand Down

0 comments on commit 459f985

Please sign in to comment.