Skip to content

Commit

Permalink
Remove next redirect causing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ccruzkauppila committed Oct 31, 2024
1 parent f912bd8 commit b92f11f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/actions/transaction/purchase.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use server";

import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";
import { RedirectType, redirect } from "next/navigation";

import { getSession } from "@/auth/ironsession";
import { CartProduct } from "@/common/types";
Expand Down Expand Up @@ -39,7 +39,6 @@ export const purchaseAction = async (shoppingCart: CartProduct[]) => {
});

revalidatePath("/shop");
redirect("/shop");
};

const makePurchase = async (
Expand Down

0 comments on commit b92f11f

Please sign in to comment.