mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -78,7 +78,7 @@ function resolveTierBadge(myTier) {
|
||||
colorKey: category.color ?? "green",
|
||||
label: category.badge_label ?? category.name ?? tier,
|
||||
description: "",
|
||||
information: "",
|
||||
information: category.description ?? "",
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,12 @@ const LandscapeCertCard = ({ courseTitle, issuedAt, courseUuid, badgeColor, badg
|
||||
a.click();
|
||||
URL.revokeObjectURL(url);
|
||||
} catch {
|
||||
toast.error("Could not download certificate.");
|
||||
toast("Could not download certificate.", {
|
||||
action: {
|
||||
label: "Close",
|
||||
onClick: () => {}
|
||||
}
|
||||
});
|
||||
} finally {
|
||||
setDownloading(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user