Skip to content

Commit

Permalink
new cover image, referrals fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Feb 3, 2024
1 parent 09e25b7 commit ff7c42e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Binary file modified public/assets/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions src/components/Referral.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<div class="col-md-6 offset-md-3">
<input
class="form-control text-center clipboard"
:value="'https://fantomname.org/?ref=' + this.getNameOrAddress"
@click="copyToClipboard('https://fantomname.org/?ref=' + this.getNameOrAddress)"
:value="getReferralUrl"
@click="copyToClipboard(getReferralUrl)"
readonly
>
</div>
Expand All @@ -33,13 +33,17 @@ export default {
computed: {
...mapGetters("user", ["getUserAddress", "getUserSelectedName"]),
...mapGetters("tld", ["getReferralFee"]),
getNameOrAddress() {
getReferralUrl() {
let nameOrAddress;
if (this.getUserSelectedName) {
return this.getUserSelectedName;
nameOrAddress = this.getUserSelectedName;
} else {
return this.getUserAddress;
nameOrAddress = this.getUserAddress;
}
return window.location.origin + "/?ref=" + nameOrAddress;
}
},
Expand Down

0 comments on commit ff7c42e

Please sign in to comment.