Skip to content

Commit

Permalink
ログインページリダイレクト
Browse files Browse the repository at this point in the history
  • Loading branch information
nouzoehiroaki committed Feb 3, 2024
1 parent f550c11 commit bded193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/layouts/Book/Book.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Book = ({ book, isPurchase }: BookProps) => {
const handlePurchaseConfirm = () => {
if (!user) {
setShowModal(false); // モーダルを閉じる
router.push('/login');
router.push('/api/auth/signin');
} else {
//Stripe購入画面へ。購入済みならそのまま本ページへ。
startCheckout();
Expand Down

0 comments on commit bded193

Please sign in to comment.