Skip to content

Commit

Permalink
fix: make carrier name reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSDV committed Sep 11, 2024
1 parent 09ca9c1 commit f93c35d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/shared/src/components/CarrierBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</template>

<script lang="ts" setup>
import {toRefs} from 'vue';
import {toRefs, computed} from 'vue';
import {resolveCarrierName} from '../utils';
import {type CarrierIdentifier} from '../types';
import {useCarrierRequest} from '../composables';
Expand All @@ -26,6 +26,7 @@ import Box from './Box.vue';
const props = defineProps<{carrier: CarrierIdentifier}>();
const propRefs = toRefs(props);
const carrierName = computed(() => resolveCarrierName(propRefs.carrier.value));
const {data} = useCarrierRequest(resolveCarrierName(propRefs.carrier.value));
const {data} = useCarrierRequest(carrierName);
</script>

0 comments on commit f93c35d

Please sign in to comment.