bugfix/ TRip: toasts not being dismissed

This commit is contained in:
2025-08-14 13:30:12 -04:00
parent 7c36302aec
commit 31bd4e1b54

View File

@@ -115,6 +115,11 @@ export default function MediaRequestForm() {
const handleSearch = async () => {
toast.dismiss();
setIsSearching(true);
try {
if (metadataFetchToastId.current) toast.dismiss(metadataFetchToastId.current);
} catch (err) {
console.log(err);
}
metadataFetchToastId.current = toast.info("Retrieving metadata...",
{
autoClose: false,