Skip to content

Commit

Permalink
Prevents 404 in networks tab for TRIAL users
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars committed Jun 24, 2022
1 parent 7be60b4 commit 7f53c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/web/ee/components/TrialBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const TrialBanner = () => {
<Button
href="/api/upgrade"
color="minimal"
prefetch={false}
className="w-full justify-center border-2 border-gray-600 hover:bg-yellow-100">
{t("upgrade_now")}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type ButtonBaseProps = {
};
export type ButtonProps = ButtonBaseProps &
(
| (Omit<JSX.IntrinsicElements["a"], "href" | "onClick"> & { href: LinkProps["href"] })
| (Omit<JSX.IntrinsicElements["a"], "href" | "onClick"> & LinkProps)
| (Omit<JSX.IntrinsicElements["button"], "onClick"> & { href?: never })
);

Expand Down

0 comments on commit 7f53c42

Please sign in to comment.