Skip to content

Commit

Permalink
fix: try Signoz is visible on success (#3906)
Browse files Browse the repository at this point in the history
  • Loading branch information
palashgdev authored Nov 10, 2023
1 parent 88aabb2 commit 30b0d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/container/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function HeaderContainer(): JSX.Element {
);
};

const { data: licenseData, isFetching } = useLicense();
const { data: licenseData, isFetching, status: licenseStatus } = useLicense();

const isLicenseActive =
licenseData?.payload?.licenses?.find((e) => e.isCurrent)?.status ===
Expand Down Expand Up @@ -169,7 +169,7 @@ function HeaderContainer(): JSX.Element {
</NavLink>

<Space size="middle" align="center">
{!isLicenseActive && (
{licenseStatus === 'success' && !isLicenseActive && (
<Button onClick={onClickSignozCloud} type="primary">
Try Signoz Cloud
</Button>
Expand Down

0 comments on commit 30b0d42

Please sign in to comment.