Skip to content

Commit

Permalink
feat: fix account-title error
Browse files Browse the repository at this point in the history
  • Loading branch information
TzuHanLiang committed Aug 9, 2024
1 parent 54e0511 commit 28c0b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iSunFA",
"version": "0.1.8+168",
"version": "0.1.8+169",
"private": false,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/accounting_context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export const AccountingProvider = ({ children }: IAccountingProvider) => {
}, [OCRListParams, listError, listSuccess, listCode, unprocessOCRs]);

const generateAccountTitle = (account: IAccount | null) => {
if (account) return account.code.substring(0, 4) + ' - ' + account.name;
if (account) return account.code + ' - ' + account.name;
return `JOURNAL.ACCOUNT_TITLE`;
};

Expand Down

0 comments on commit 28c0b8b

Please sign in to comment.