Skip to content

Commit

Permalink
feat(ui): close starter models toast when a model is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed May 21, 2024
1 parent 05659be commit 02887aa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export const useStarterModelsToast = () => {

useEffect(() => {
if (toast.isActive(TOAST_ID)) {
return;
if (mainModels.length === 0) {
return;
} else {
toast.close(TOAST_ID);
}
}
if (data && mainModels.length === 0 && !didToast && isEnabled) {
toast({
Expand Down

0 comments on commit 02887aa

Please sign in to comment.