Skip to content

Commit

Permalink
refactor: remove unused field and use util to get feature flag value
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Nov 7, 2023
1 parent 352531e commit 94c3468
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ import { mdiInformation } from '@mdi/js';
import HeartIcon from '@/assets/icons/inline/heart-icon.svg';
import HowKivaUsesDonation from '@/components/Checkout/HowKivaUsesDonation';
import { gql } from '@apollo/client';
import { readBoolSetting } from '@/util/settingsUtils';
import KvButton from '~/@kiva/kv-components/vue/KvButton';
import KvLightbox from '~/@kiva/kv-components/vue/KvLightbox';
import KvMaterialIcon from '~/@kiva/kv-components/vue/KvMaterialIcon';
Expand All @@ -119,14 +120,13 @@ export default {
seasonalTipRateEnabled: featureSetting(key: "seasonal_tip_rate.enabled") {
key
value
description
}
}
}
`,
preFetch: true,
result({ data }) {
this.seasonalTipRateEnabled = data?.general?.seasonalTipRateEnabled?.value === 'true' ?? false;
this.seasonalTipRateEnabled = readBoolSetting(data, 'general.seasonalTipRateEnabled.value');
}
},
components: {
Expand Down

0 comments on commit 94c3468

Please sign in to comment.