Skip to content

Commit

Permalink
simple check for empty url return checkout session
Browse files Browse the repository at this point in the history
  • Loading branch information
TeisNP committed Feb 4, 2024
1 parent feb28d4 commit fbc4f72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dashboard/src/api/endpoints/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,7 @@ export async function postCreateCheckoutSession(
priceLookupKey,
});
const body = (await res).data;
window.location.href = body;
if (body != "") {
window.location.href = body;
}
}

0 comments on commit fbc4f72

Please sign in to comment.