Fix OG image, CBT filters, syllabus split, and trial duration
This commit is contained in:
@@ -14,9 +14,9 @@ export function ProgressShare() {
|
||||
const streak = "12"
|
||||
const accuracy = "85"
|
||||
const name = user?.name || "Student"
|
||||
|
||||
// Use a fallback image if API endpoint is not yet ready, else use real endpoint
|
||||
const imageUrl = `/api/og/progress?streak=${streak}&accuracy=${accuracy}&name=${encodeURIComponent(name)}`
|
||||
const target = user?.target_exam === "NEET" ? "NEET" : "JEE"
|
||||
const plan = user?.tier === "Al_Coach" ? "AI Coach" : user?.tier || "Free"
|
||||
const imageUrl = `/api/og/progress?streak=${streak}&accuracy=${accuracy}&name=${encodeURIComponent(name)}&target=${target}&plan=${encodeURIComponent(plan)}`
|
||||
|
||||
const handleDownload = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user