Skip to content

Commit b9feb2d

Browse files
committed
fix: type error
1 parent 8a1e4be commit b9feb2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/components/NUsersPasswordStrengthIndicator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const validationRules = computed(() => {
8585
const resolveTranslation = (message: string) => {
8686
if (!message) return ''
8787
if (message.includes('|')) {
88-
const [key, paramStr] = message.split('|')
88+
const [key = '', paramStr] = message.split('|')
8989
const params = paramStr ? paramStr.split(',') : []
9090
return t(key, params)
9191
}

0 commit comments

Comments
 (0)