@sanity/ui 4.0.0-static.39 → 4.0.0-static.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3162,7 +3162,7 @@ function ToastProvider(props) {
3162
3162
  startTransition(() => {
3163
3163
  timeoutId && clearTimeout(timeoutId), setState((currentState) => currentState.filter((toast_0) => toast_0.id !== id));
3164
3164
  });
3165
- }, timeoutId = setTimeout(dismiss, duration);
3165
+ }, timeoutId = duration === 1 / 0 ? void 0 : setTimeout(dismiss, duration);
3166
3166
  return [...prevState.filter((toast_1) => toast_1.id !== id), {
3167
3167
  dismiss,
3168
3168
  id,