mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix error when no bill was found
This commit is contained in:
@@ -122,5 +122,5 @@ export async function getMilageMax(): Promise<number> {
|
||||
.select('milageEnd')
|
||||
.exec()
|
||||
|
||||
return billMaxMilageEnd?.milageEnd
|
||||
return billMaxMilageEnd?.milageEnd || 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user