mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
make use of the promise-based thingy we're doing
This commit is contained in:
parent
7fc39cd770
commit
bc6fdf3517
2 changed files with 1 additions and 9 deletions
|
|
@ -74,14 +74,6 @@ export function DialogContentContainer({
|
|||
|
||||
setContent("");
|
||||
setSelectedSpaces([]);
|
||||
|
||||
if (cont.success) {
|
||||
toast.success("Memory queued", {
|
||||
richColors: true,
|
||||
});
|
||||
} else {
|
||||
toast.error(`Memory creation failed: ${cont.error}`);
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ function Menu() {
|
|||
Creating memory...
|
||||
</span>
|
||||
),
|
||||
success: (data) => "Memory created",
|
||||
success: (data) => "Memory queued",
|
||||
error: (error) => error.message,
|
||||
richColors: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue