Skip to content

Commit

Permalink
🐛 Fix trailing / when parsing LikerID from iscn record
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Aug 19, 2021
1 parent 137efbe commit a040f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/in/tx/iscn/_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ export default {
return this.stakeholders.reduce((t, s) => t + s.rewardProportion, 0);
},
creatorLikerId() {
if (this.creatorId.startsWith(EXTERNAL_URL)) {
return this.creatorId.replace(EXTERNAL_URL, '');
if (this.creatorId.startsWith(`${EXTERNAL_URL}/`)) {
return this.creatorId.replace(`${EXTERNAL_URL}/`, '');
}
return '';
},
Expand Down

0 comments on commit a040f97

Please # to comment.