mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
code refactor
This commit is contained in:
@@ -321,7 +321,7 @@ export function useTransactionEditPageBase(type: TransactionEditPageType, initMo
|
||||
}
|
||||
}
|
||||
|
||||
if (type === 'template' && transaction.value instanceof TransactionTemplate) {
|
||||
if (type === TransactionEditPageType.Template && transaction.value instanceof TransactionTemplate) {
|
||||
if (!transaction.value.name) {
|
||||
return 'Template name cannot be blank';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user