Skip to content

Commit

Permalink
small little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianyourgod committed May 10, 2024
1 parent 3e386a8 commit 3e02eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/menu-bar/share-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const getProjectUri = () => new Promise(resolve => {
const isUploadAvailable = async () => {
let res = null;
try {
res = await fetch('http://localhost:8080/api/v1/ping');
res = await fetch('http://localhost:8080/api/v1/projects/canuploadprojects').then(res => res.json());
} catch {
// failed to fetch entirely
return false;
}
return res.ok;
return res.canUpload;
};

class ShareButton extends React.Component {
Expand Down

0 comments on commit 3e02eaa

Please sign in to comment.