We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782bab6 commit 7ededfeCopy full SHA for 7ededfe
app/ui/payments/confirmationModal.tsx
@@ -19,7 +19,7 @@ export const ConfirmationModal = ({ product, session }: ProductModalProps) => {
19
const [loading, setLoading] = useState(false);
20
21
const handleBuy = async (id: string) => {
22
- if (status !== "authenticated") {
+ if (!session) {
23
return toast.error("You need to be signed in to buy this product", {
24
action: { label: "Sign in", onClick: () => signIn("logto") },
25
});
0 commit comments