Fixed the "send to" issue, where you could select the bias-of-the-day (#183)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-11-02 11:55:09 +01:00
1 parent 8bd54e6d61
commit bd97c0fb4b
4 files changed
+15 -9

No files matched your search

@@ -5,6 +5,14 @@ namespace AIStudio.Tools;
public static class ComponentsExtensions
{
public static bool AllowSendTo(this Components component) => component switch
{
Components.NONE => false,
Components.BIAS_DAY_ASSISTANT => false,
_ => true,
};
public static string Name(this Components component) => component switch
{
Components.GRAMMAR_SPELLING_ASSISTANT => "Grammar & Spelling Assistant",