bugfix/ TRip: toasts not being dismissed
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user