Browse Source

chore: lint-fix

pull/164/head
Matthew Raymer 2 days 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); const exContact: Contact = R.omit(["contactMethods"], contact);
// now add contactMethods as a true array of ContactMethod objects // now add contactMethods as a true array of ContactMethod objects
exContact.contactMethods = contact.contactMethods exContact.contactMethods = contact.contactMethods
? (typeof contact.contactMethods === 'string' && contact.contactMethods.trim() !== '' ? typeof contact.contactMethods === "string" &&
? JSON.parse(contact.contactMethods) contact.contactMethods.trim() !== ""
: []) ? JSON.parse(contact.contactMethods)
: []
: []; : [];
return exContact; return exContact;
}); });

6
src/components/OfferDialog.vue

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

Loading…
Cancel
Save