Skip to content

Commit

Permalink
Fix level updating on explore
Browse files Browse the repository at this point in the history
  • Loading branch information
coppersalts committed Feb 17, 2024
1 parent 94b9c2a commit 24ada63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 5b.js
Original file line number Diff line number Diff line change
Expand Up @@ -9761,7 +9761,7 @@ function draw() {
if (drawSimpleButton('Copy Link', exploreCopyLink, 226, 379, 188, 30, 3, '#ffffff', '#404040', '#808080', '#808080').hover) copyButton = 3;
drawSimpleButton('More By This User', exploreMoreByThisUser, 226, 417, 188, 30, 3, '#ffffff', '#404040', '#808080', '#808080');

if (exploreLevelPageType != 1 && loggedInExploreUser5beamID === exploreLevelPageLevel) {
if (exploreLevelPageType != 1 && loggedInExploreUser5beamID === exploreLevelPageLevel.creator.id) {
drawSimpleButton(editingExploreLevel?'Save Changes':'Edit', editExploreLevel, 226, 455, 188, 30, 3, '#ffffff', '#404040', '#808080', '#808080');
if (editingExploreLevel) {
drawSimpleButton('Cancel', cancelEditExploreLevel, 226, 493, 188, 30, 3, '#ffffff', '#404040', '#808080', '#808080');
Expand Down Expand Up @@ -10438,6 +10438,7 @@ async function postExploreLevelOrPack(title, desc, data, isLevelpack=false) {
}

function postExploreModifyLevel(id, title, desc, difficulty, file) {
refreshToken();
requestAdded();

const body = {
Expand Down

0 comments on commit 24ada63

Please sign in to comment.