Skip to content

Commit 17d68f3

Browse files
HybridAUjwise
authored andcommitted
Invert logic for screenshots and fix typo
1 parent 04b8ebe commit 17d68f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html/res/js/devPortal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ function showAppUploadingModal() {
14151415
}
14161416
function syncScreenshotButtonPreviews() {
14171417
//If we refresh the page the file inputs retain the images, but the preview <img>s loose their values. This reloads those. Called by showPage()
1418-
PLATFORM.forEach(platform => {
1418+
PLATFORMS.forEach(platform => {
14191419
var short = platform.substr(0,1);
14201420
for (var i=1;i<6;i++) {
14211421
var fileInput = document.getElementById(`i-screenshot-${short}-${i}-f`)
@@ -1448,7 +1448,7 @@ function submitNewApp() {
14481448
if (shinyNewApp.releaseNotes == "") { newAppValidationError("Release Notes cannot be blank"); return }
14491449
//At least one screenshot
14501450

1451-
if (PLATFORMS.some(platformScreenshotExists)) {
1451+
if (!PLATFORMS.some(platformScreenshotExists)) {
14521452
newAppValidationError("Provide at least one screenshot")
14531453
return
14541454
}

0 commit comments

Comments
 (0)