Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: toast action button has transparent text

thecodrr7e9c12e07329
diff --git a/apps/web/src/utils/toast.tsx b/apps/web/src/utils/toast.tsx
index 17eaa765c..923755f52 100644
--- a/apps/web/src/utils/toast.tsx
+++ b/apps/web/src/utils/toast.tsx
@@ -8,7 +8,7 @@ type ToastType = "success" | "error" | "warn" | "info";
type ToastAction = {
text: string;
onClick: () => void;
- type: "primary" | "text";
+ type?: "primary" | "text";
};
function showToast(
@@ -73,7 +73,7 @@ function ToastContainer(props: ToastContainerProps) {
<Button
flexShrink={0}
variant="primary"
- color={action.type}
+ color={action.type || "primary"}
fontWeight="bold"
bg={"transparent"}
fontSize="body"