Update public/scripts/PromptManager.js Co-authored-by: valadaptive <79560998+valadaptive@users.noreply.github.com>
Signed| @@ -1553,7 +1553,7 @@ class PromptManager { | |||
| 1553 | 1553 | ||
| 1554 | //add role icons to the right of prompt name | 1554 | //add role icons to the right of prompt name |
| 1555 | 1555 | ||
| 1556 | const hasRole = prompt.role ? true : false; | 1556 | const hasRole = !!prompt.role; |
| 1557 | let roleIcon, roleTitle; | 1557 | let roleIcon, roleTitle; |
| 1558 | if (hasRole) { | 1558 | if (hasRole) { |
| 1559 | switch (prompt.role) { | 1559 | switch (prompt.role) { |