code refactor

This commit is contained in:
MaysWind
2026-02-17 13:55:35 +08:00
parent 2e97d699e7
commit 0d213de580
@@ -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';
}