Skip to content

Commit

Permalink
temp changes in referral count
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj6939 committed Nov 21, 2022
1 parent 0851c0a commit 44c47ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/components/participant/ActionInputs/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@
<div class="text text-left">
{{ truncate1(referalLink,25) }}
<span @click="copy" class="copy"
v-if="userReferralCount.count > 0"
><i class="far fa-copy"></i
></span>
</div>
<small class="countCss" v-if="userReferralCount.count > 0">Valid Upto {{userReferralCount.count}} referrals</small>
<small class="countCss" v-else>Referral link expired</small>
<small class="countCss">Valid Upto {{userReferralCount.count}} referrals</small>
</b-col>
</b-row>
</b-card-body>
Expand Down
5 changes: 3 additions & 2 deletions src/views/participant/Event.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export default {
externalUserId:"",
userEventData: null,
userReferralCount:{
count:0
count:0,
usageCount:0
},
userAuthData: null,
eventActionsToShow: [],
Expand Down Expand Up @@ -223,7 +224,7 @@ export default {
this.eventData = {
...resp.data
}
this.userReferralCount.usageCount = this.eventData.referralUsageLimit
// If it is old event then just recreating this variable using default values from config
if (!this.eventData['orgData']){
this.eventData['orgData'] = {}
Expand Down

0 comments on commit 44c47ae

Please sign in to comment.