Skip to content

Commit

Permalink
Removed unnecessary line of code, changed Number to parseInt for cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
alexander-astrand committed Feb 9, 2024
1 parent 4276175 commit d2f5658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions frontend/marketplace/src/components/AuctionResultsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ interface CardDetailsList {
const props = defineProps<AuctionResultsCardProps>();
const denom = ref("");
const volume = computed(() => {
return Number(props.cardData.creditCollection.retiredAmount) + Number(props.cardData.creditCollection.activeAmount)
})
const volume = computed(() => {
return (
parseInt(props.cardData.creditCollection.retiredAmount) +
parseInt(props.cardData.creditCollection.activeAmount)
);
});
const cardDetailsList = ref<CardDetailsList>();
const showSpinner = ref(true);
const applicant = computed<string>(() => {
Expand All @@ -50,7 +53,7 @@ onMounted(async () => {
cardDetailsList.value = getDetailsList(
props.cardData.creditCollection.creditData.nodes,
);
showSpinner.value = false;
showSpinner.value = false;
});
const handleViewDetailsClick = () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/marketplace/src/components/ImageGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ watch(
const handleActiveImage = (url: string) => {
activeImageURL.value = url;
showSpinner.value = false;
};
</script>
<template>
Expand Down

0 comments on commit d2f5658

Please sign in to comment.