Skip the “Starting Balance” transaction if the balance is 0 (#630)

This commit is contained in:
Jed Fox
2023-02-04 16:53:24 -05:00
committed by GitHub
parent bc3bb6f281
commit 4b6585a72e

View File

@@ -861,7 +861,7 @@ handlers['account-create'] = mutator(async function ({
transfer_acct: id
});
if (balance != null) {
if (balance != null && balance !== 0) {
let payee = await getStartingBalancePayee();
await db.insertTransaction({