all forms of Default are illegal

This commit is contained in:
Aria Moradi
2021-08-21 05:05:01 +04:30
parent a76a6d2798
commit 9b129789e9
@@ -28,7 +28,7 @@ object Category {
* The new category will be placed at the end of the list
*/
fun createCategory(name: String) {
if (name == DEFAULT_CATEGORY_NAME) return
if (name.equals(DEFAULT_CATEGORY_NAME, ignoreCase = true)) return
transaction {
val count = CategoryTable.selectAll().count()