Skip to content

Commit

Permalink
fix/fix lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cripacrip committed Jul 12, 2023
1 parent dc1a090 commit de86fa7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/pages/settings/tabs/currencies/edit-currency.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export default defineComponent({
));
const isFormDirty = computed(() =>
isRateChanged.value ||
(props.currency.custom && !isChecked.value)
isRateChanged.value
|| (props.currency.custom && !isChecked.value)
);
const onBaseFocus = () => {
Expand All @@ -124,8 +124,8 @@ export default defineComponent({
isBaseEditing.value = false;
};
const toggleChange = (event) => {
isChecked.value = !event.target.checked
}
isChecked.value = !event.target.checked;
};
watch(
() => form.baseRate,
Expand All @@ -145,8 +145,8 @@ export default defineComponent({
);
onMounted(() => {
isChecked.value = props.currency.custom
})
isChecked.value = props.currency.custom;
});
const onDeleteHandler = () => {
emit('delete');
Expand All @@ -163,7 +163,8 @@ export default defineComponent({
baseCode: props.currency.quoteCode,
quoteCode: props.currency.code,
},
]),
]);
emit('submit');
addSuccessNotification('Successfully updated.');
Expand All @@ -173,7 +174,7 @@ export default defineComponent({
return;
}
addErrorNotification('Unexpected error')
}
};
};
const updateExchangeRates = async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/tabs/currencies/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default defineComponent({
const onSubmitHandler = () => {
loadRates();
toggleActiveItem(null)
toggleActiveItem(null);
};
const isDeletionDisabled = (currency: UserCurrencyRecord) => (
Expand Down

0 comments on commit de86fa7

Please sign in to comment.