diff --git a/app/components/ui-lib.tsx b/app/components/ui-lib.tsx
index 5b6ed9598..78ac1a715 100644
--- a/app/components/ui-lib.tsx
+++ b/app/components/ui-lib.tsx
@@ -197,11 +197,19 @@ export function showToast(
}, 300);
};
+ const newAction = {
+ text: action?.text || "",
+ onClick: () => {
+ action?.onClick();
+ close();
+ },
+ };
+
setTimeout(() => {
close();
}, delay);
- root.render();
+ root.render();
}
export type InputProps = React.HTMLProps & {