mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +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) {
|
if (!transaction.value.name) {
|
||||||
return 'Template name cannot be blank';
|
return 'Template name cannot be blank';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user