type fixes

This commit is contained in:
Eng. Elias
2024-02-20 20:32:41 +04:00
parent 619f199abe
commit 7697f09019
6 changed files with 33 additions and 45 deletions

View File

@@ -1,3 +1,5 @@
"use client";
import { tools } from "@/data/data";
import { Agent } from "@/types/agent";
import { Icon } from "@iconify/react";
@@ -92,7 +94,7 @@ export default function AgentModal(props: {
{isEdit ? (
<TETextarea
rows={4}
value={tempAgent?.backstory}
value={tempAgent?.backstory || ""}
onChange={(event) => {
setTempAgent((prevState) => ({
...prevState!,
@@ -175,7 +177,7 @@ export default function AgentModal(props: {
</>
) : (
<img
src={agent?.image}
src={agent?.image ?? "/sailor.png"}
alt="Software Engineer"
className="w-full rounded-lg"
/>