Skip to content

Commit

Permalink
fix: small refactoring after rewiev [WTEL-3883]
Browse files Browse the repository at this point in the history
  • Loading branch information
lizacoma committed Feb 13, 2024
1 parent 060d07c commit c765117
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/locale/en/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export default {
destination: 'Destination',
setAsPrimary: 'Set as primary',
emails: {
title: 'the email',
title: 'The email',
dummy: 'There are no email addresses yet',
},
phones: {
title: 'the phone number',
title: 'The phone number',
dummy: 'There are no phone numbers yet',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ const communicationOptions = [
// },
];
const currentCommunication = ref(communicationOptions.find((option) => option.value === props.channel));
const getDefaultDraft = () => ({
channel: props.channel,
type: {},
Expand All @@ -119,6 +116,10 @@ const getDefaultDraft = () => ({
const draft = reactive(getDefaultDraft());
const currentCommunication = computed(() => {
return communicationOptions.find((option) => option.value === props.channel);
});
const v$ = useVuelidate(computed(() => {
const destination = props.channel === 'email' ? { required, email } : { required };
return {
Expand Down

0 comments on commit c765117

Please sign in to comment.