diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java index 9b4df6c..acb18c2 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java @@ -275,7 +275,7 @@ public class GeoPortalDataEntryApp implements EntryPoint { public void onCreateNewProject(CreateNewProjectEvent newProjectEvent) { //means the form was not submitted - if(savedMap.size()>0) { + if(savedMap.size()==0) { boolean confirm = Window.confirm("Creating a new project, the current project (is not saved) and will be lost, Confirm?"); if(confirm) buildNewCards(orderedCards);