Fix crash with fresh data

This commit is contained in:
Marc Di Luzio 2020-06-11 18:27:19 +01:00
parent 14424c16ca
commit 7d1a2d7efd

View file

@ -90,7 +90,7 @@ func main() {
persistence.SetPath(data)
// Initialise and load the accountant
accountant := &internal.Accountant{}
accountant := internal.NewAccountant()
if err := persistence.Load("accounts", accountant); err != nil {
log.Fatalf("failed to load account data: %s", err)
}