Skip to content

Commit

Permalink
[FIX] Upgrade Tab showing for a split second (#25050)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Apr 5, 2022
1 parent df694bb commit 71e1ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/views/admin/sidebar/AdminSidebarPages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ type AdminSidebarPagesProps = {

const AdminSidebarPages: FC<AdminSidebarPagesProps> = ({ currentPath }) => {
const items = useSubscription(itemsSubscription);
const { tabType, trialEndDate } = useUpgradeTabParams();
const { tabType, trialEndDate, isLoading } = useUpgradeTabParams();

return (
<Box display='flex' flexDirection='column' flexShrink={0} pb='x8'>
{tabType && <UpgradeTab type={tabType} currentPath={currentPath} trialEndDate={trialEndDate} />}
{!isLoading && tabType && <UpgradeTab type={tabType} currentPath={currentPath} trialEndDate={trialEndDate} />}
<Sidebar.ItemsAssembler items={items} currentPath={currentPath} />
</Box>
);
Expand Down

0 comments on commit 71e1ac5

Please sign in to comment.