fix: react-doctor async-defer-await 10→0 (move await below guards), rerender-memo-with-default-value 13→0 (module-scope EMPTY_* defaults)
This commit is contained in:
+4
-2
@@ -203,7 +203,8 @@ export async function getTaxSummaryAction(params: {
|
||||
endDate: string;
|
||||
}): Promise<GetTaxSummaryResult> {
|
||||
|
||||
await getSession(); if (!params.brandId) return { success: false, error: "Brand required" };
|
||||
if (!params.brandId) return { success: false, error: "Brand required" };
|
||||
await getSession();
|
||||
try {
|
||||
const { rows } = await pool.query<{
|
||||
total_tax_collected: number | string;
|
||||
@@ -239,7 +240,8 @@ export async function getTaxableOrdersAction(params: {
|
||||
endDate: string;
|
||||
}): Promise<GetTaxableOrdersResult> {
|
||||
|
||||
await getSession(); if (!params.brandId) return { success: false, error: "Brand required" };
|
||||
if (!params.brandId) return { success: false, error: "Brand required" };
|
||||
await getSession();
|
||||
try {
|
||||
const { rows } = await pool.query<{
|
||||
order_id: string;
|
||||
|
||||
Reference in New Issue
Block a user