Skip to content

Commit 7ededfe

Browse files
committed
fix: forgot to replace session handling on modal
1 parent 782bab6 commit 7ededfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/ui/payments/confirmationModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const ConfirmationModal = ({ product, session }: ProductModalProps) => {
1919
const [loading, setLoading] = useState(false);
2020

2121
const handleBuy = async (id: string) => {
22-
if (status !== "authenticated") {
22+
if (!session) {
2323
return toast.error("You need to be signed in to buy this product", {
2424
action: { label: "Sign in", onClick: () => signIn("logto") },
2525
});

0 commit comments

Comments
 (0)