refactor: standardize code formatting and improve readability across multiple components, including transaction handling and sidebar layout adjustments
This commit is contained in:
@@ -125,9 +125,6 @@ export async function DELETE(request: Request) {
|
||||
console.error("Error deleting transaction:", error);
|
||||
const errorMessage =
|
||||
error instanceof Error ? error.message : "Failed to delete transaction";
|
||||
return NextResponse.json(
|
||||
{ error: errorMessage },
|
||||
{ status: 500 },
|
||||
);
|
||||
return NextResponse.json({ error: errorMessage }, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user