Skip to content

Commit

Permalink
fix: Do not share button while chart has not been saved
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Jan 25, 2023
1 parent b3d58b0 commit 6ce9fc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/chart-selection-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ const ShareChartEditionButton = () => {
close();
});

if (!key) {
return null;
}

return (
<>
<Button
Expand Down

0 comments on commit 6ce9fc6

Please sign in to comment.