mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2026-05-08 09:38:55 -04:00
refactor: migrate authentication system and update Drizzle schema.
This commit is contained in:
@@ -78,7 +78,7 @@ export const invoicesRouter = createTRPCRouter({
|
||||
});
|
||||
|
||||
// Return null if no draft invoice exists
|
||||
if (!currentInvoice || currentInvoice.status !== "draft") {
|
||||
if (currentInvoice?.status !== "draft") {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user