Skip to content

Commit

Permalink
fix: Remove unused getter
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed May 31, 2024
1 parent 13b4db7 commit a63dc26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
8 changes: 3 additions & 5 deletions src/components/AccountButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
unelevated
@click="eth_web3_login"
>
<q-icon class="text-dark" size="xs" left>
<q-icon class="text-dark" left size="xs">
<img src="~assets/wallet.svg" />
</q-icon>
Connect Wallet
Expand All @@ -18,11 +18,11 @@
v-else
:label="`${account.address.slice(0, 4)}...${account.address.slice(-2)}`"
class="border-primary-highlight gt-sm"
text-color="primary"
icon="img:icons/svg/avatar.svg"
no-caps
rounded
text-color="primary"
unelevated
icon="img:icons/svg/avatar.svg"
>
<div class="row no-wrap q-pa-md q-pt-none">
<div class="column items-center">
Expand Down Expand Up @@ -50,8 +50,6 @@ import { ethers } from 'ethers';
import { useAccount } from '../stores/account';
import { usePoints } from 'stores/points';
console.log(ethers);
const account = useAccount();
async function eth_web3_login() {
Expand Down
12 changes: 0 additions & 12 deletions src/stores/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ export const useAccount = defineStore('account', {
signer: null,
address: '',
}),
getters: {
alephAccount() {
return {
address: this.address,
name: this.address,
type: 'ETH',
source: 'provider',
provider: this.provider,
signer: this.signer,
};
},
},
actions: {
// any amount of arguments, return a promise or not
async setProvider(provider) {
Expand Down

0 comments on commit a63dc26

Please sign in to comment.