fixed the getUserAttributes method

This commit is contained in:
bobbert committed 2025-04-02 13:19:05 +01:00
1 parent 0b66878649
commit eb233f43f9
1 file changed
+5 -5
+5 -5
View File
@@ -11,11 +11,11 @@ public class User {
public String getUserAttribute(String panelName) {
return switch (panelName.toLowerCase()) {
case "title" -> user.getTitle();
case "name" -> user.getName();
case "email" -> user.getEmail();
case "phone" -> user.getPhone();
case "address" -> user.getAddress();
case "title" -> getTitle();
case "name" -> getName();
case "email" -> getEmail();
case "phone" -> getPhone();
case "address" -> getAddress();
default -> "method error";
};
}