avoid too many duplicate requireUserInServerComponent requests for each page+layout
This commit is contained in:
@@ -168,7 +168,7 @@ async function sendAnalysisPackageOrderEmail({
|
||||
}
|
||||
|
||||
export async function processMontonioCallback(orderToken: string) {
|
||||
const account = await loadCurrentUserAccount();
|
||||
const { account } = await loadCurrentUserAccount();
|
||||
if (!account) {
|
||||
throw new Error("Account not found in context");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user