fix(extraSidebarComponent): update condition to show ExportMemo button based on hasApiKey and validApiKey variables

This commit is contained in:
cristhianzl 2023-12-21 15:06:41 -03:00
commit 34474166b8

View file

@ -231,7 +231,7 @@ export default function ExtraSidebar(): JSX.Element {
return (
<div className="side-bar-arrangement">
<div className="side-bar-buttons-arrangement">
{hasStore && (
{hasStore && validApiKey && (
<ShadTooltip
content={
!hasApiKey || !validApiKey
@ -263,7 +263,7 @@ export default function ExtraSidebar(): JSX.Element {
</button>
</ShadTooltip>
</div>
{!hasStore && ExportMemo}
{(!hasApiKey || !validApiKey) && ExportMemo}
<ShadTooltip content={"Code"} side="top">
<div className="side-bar-button">
{flow && flow.data && (