We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ca5a4 commit 56df891Copy full SHA for 56df891
apps/frontend/src/components/organisms/SideNavBar/index.tsx
@@ -50,6 +50,9 @@ export const SideNavbar = ({ networkId }: SideNavbarProps) => {
50
return true;
51
});
52
53
+ const hasBuyCreditsFeature =
54
+ features.buyCredits && isLoggedIn && account?.model === AccountModel.OneOff;
55
+
56
return (
57
<Sidebar className='bg-card'>
58
<AuthModal
@@ -86,7 +89,7 @@ export const SideNavbar = ({ networkId }: SideNavbarProps) => {
86
89
/>
87
90
)}
88
91
{isLoggedIn && account ? (
- features.buyCredits ? (
92
+ hasBuyCreditsFeature ? (
93
<BuyMoreCreditsButton />
94
) : (
95
<AskForCreditsButton />
0 commit comments