Skip to content

Commit

Permalink
šŸ› Fix grace period civic liker with expired subscription stuck in purā€¦
Browse files Browse the repository at this point in the history
ā€¦chase (#434)
  • Loading branch information
williamchong authored May 4, 2021
1 parent 0aca8f9 commit b8edb91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ export default {
confirmSubscription(e) {
this.$emit('confirm-subscription', e);
if (this.getUserIsCivicLikerV2) {
if (this.getUserIsCivicLikerV2 && this.getUserSubscriptionInfo) {
this.updateSubscription();
} else {
this.$router.push({
Expand Down
20 changes: 10 additions & 10 deletions src/pages/civic/register/stripe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ export default {
},
mounted() {
if (this.getUserIsCivicLiker) {
if (this.getUserIsCivicLikerV2) {
const { from: id } = this.$route.query;
this.$router.replace({
name: 'id',
params: { id },
query: { civic_welcome: 1 },
});
return;
}
if (!this.getUserShouldRenewCivic) {
this.$router.replace({ name: 'settings-civic' });
if (this.getUserIsCivicLikerV2) {
const { from: id } = this.$route.query;
this.$router.replace({
name: 'id',
params: { id },
query: { civic_welcome: 1 },
});
} else {
this.$router.replace({ name: 'settings-civic' });
}
return;
}
}
Expand Down

0 comments on commit b8edb91

Please sign in to comment.