Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidma415 committed Apr 15, 2024
1 parent 0bd72a4 commit 9af0374
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ErrorMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
class="kong-auth-error-message error-message"
data-testid="kong-auth-error-message"
>
<template v-if="passwordRequirements.length" #default>
<template v-if="passwordRequirements.length" #alertMessage>
<p>{{ capitalizeFirstChar(errorMessage) }}:</p>
<ul>
<li v-for="(error, idx) in passwordRequirements" :key="idx">{{ capitalizeFirstChar(error) }}</li>
</ul>
</template>
<template v-else #default>{{ errorMessage }}</template>
<template v-if="passwordRequirements.length" #alertMessage>
<template v-else #alertMessage>{{ errorMessage }}</template>
<template v-if="passwordRequirements.length" #default>
<p>{{ capitalizeFirstChar(errorMessage) }}:</p>
<ul>
<li v-for="(error, idx) in passwordRequirements" :key="idx">{{ capitalizeFirstChar(error) }}</li>
</ul>
</template>
<template v-else #alertMessage>{{ errorMessage }}</template>
<template v-else #default>{{ errorMessage }}</template>
</KAlert>
</template>

Expand Down

0 comments on commit 9af0374

Please sign in to comment.