(fix) after bill edit redirect back to same year month

This commit is contained in:
Knee Cola
2025-11-24 22:51:59 +01:00
parent d703c73972
commit 718e8396e4

View File

@@ -280,7 +280,7 @@ export const updateOrAddBill = withUser(async (user:AuthenticatedUser, locationI
} }
if(billYear && billMonth) { if(billYear && billMonth) {
const locale = await getLocale(); const locale = await getLocale();
await gotoHomeWithMessage(locale, 'billSaved'); await gotoHomeWithMessage(locale, 'billSaved', { year: billYear, month: billMonth });
} }
// This return is needed for TypeScript, but won't be reached due to redirect // This return is needed for TypeScript, but won't be reached due to redirect