public async openPrompt()

in src/features/chat-page/chat-input/prompt/input-prompt-store.ts [13:27]


  public async openPrompt() {
    this.isOpened = true;
    this.isLoading = true;
    this.errors = [];

    const response = await FindAllPrompts();

    if (response.status === "OK") {
      this.prompts = response.response;
    } else {
      this.errors = response.errors.map((e) => e.message);
    }

    this.isLoading = false;
  }