Fix build error

This commit is contained in:
Stan Wohlwend 2024-04-26 09:58:47 +02:00
parent 1279814368
commit 38365de971

View File

@ -2,11 +2,12 @@
import * as confetti from "canvas-confetti";
import { useEffect } from "react";
import { runAsynchronously } from "@stackframe/stack-shared/dist/utils/promises";
export function Confetti() {
useEffect(() => {
confetti.default()?.catch((e) => console.error(e));
runAsynchronously(confetti.default()?.catch((e) => console.error(e)));
}, []);
return (<></>);