Fixed bug - activity flag must not be an empty text

This commit is contained in:
Robert Vokac 2024-04-20 14:07:50 +02:00
parent 2cd7226c68
commit b6a4e4a5e0
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -220,7 +220,7 @@ public class DayPanel extends JPanel {
null,
""
);
if(newFlag != null) {
if(newFlag != null && !newFlag.isBlank()) {
getActivityPanels().forEach(a->
{
a.getActivity().addFlag(newFlag);