Closed alizul01 closed 1 year ago
@elianiva need help only for the error messages at create-idea
await toast.promise( new Promise(async (resolve, reject) => { const result = await supabase.from("ideas").insert([ { user_id: session.user.id, id: crypto.randomUUID().toString(), title: input.title, problem: input.problem, solution: input.solution, description: input.description, }, ]); if (result.error !== null) reject(result.error); resolve(result); }), { loading: "Creating idea...", error: (err: Error) => { return `Failed to register. Reason: ${err.message}`; }, success: "Ide berhasil dibuat!!", } ); }, }) };
i'll push it after this, wait
kenapa ini?
we ga jadi, udah aman, wait ada 1 aja yang abis ini aku jadiin issues
@elianiva need help only for the error messages at create-idea