Browse Source

chore: lint-fix

pull/164/head
Matthew Raymer 1 day ago
parent
commit
2afe61d752
  1. 7
      src/components/DataExportSection.vue
  2. 6
      src/components/OfferDialog.vue

7
src/components/DataExportSection.vue

@ -187,9 +187,10 @@ export default class DataExportSection extends Vue {
const exContact: Contact = R.omit(["contactMethods"], contact);
// now add contactMethods as a true array of ContactMethod objects
exContact.contactMethods = contact.contactMethods
? (typeof contact.contactMethods === 'string' && contact.contactMethods.trim() !== ''
? JSON.parse(contact.contactMethods)
: [])
? typeof contact.contactMethods === "string" &&
contact.contactMethods.trim() !== ""
? JSON.parse(contact.contactMethods)
: []
: [];
return exContact;
});

6
src/components/OfferDialog.vue

@ -18,7 +18,7 @@ Raymer */
<div class="flex mb-4">
<AmountInput
:value="parseFloat(amountInput) || 0"
:onUpdateValue="handleAmountUpdate"
:on-update-value="handleAmountUpdate"
data-testId="inputOfferAmount"
/>
@ -152,8 +152,6 @@ export default class OfferDialog extends Vue {
};
}
// =================================================
// COMPONENT METHODS
// =================================================
@ -199,8 +197,6 @@ export default class OfferDialog extends Vue {
this.visible = false;
}
/**
* Handle amount updates from AmountInput component
* @param value - New amount value

Loading…
Cancel
Save