Skip to content

Commit 3e02eaa

Browse files
committed
small little fix
1 parent 3e386a8 commit 3e02eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/menu-bar/share-button.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ const getProjectUri = () => new Promise(resolve => {
2828
const isUploadAvailable = async () => {
2929
let res = null;
3030
try {
31-
res = await fetch('http://localhost:8080/api/v1/ping');
31+
res = await fetch('http://localhost:8080/api/v1/projects/canuploadprojects').then(res => res.json());
3232
} catch {
3333
// failed to fetch entirely
3434
return false;
3535
}
36-
return res.ok;
36+
return res.canUpload;
3737
};
3838

3939
class ShareButton extends React.Component {

0 commit comments

Comments
 (0)