Skip to content

Commit

Permalink
adding alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed Jul 26, 2023
1 parent 28b49cf commit 02f2769
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/home/EVMLoginButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@ export default defineComponent({
const injected = ref(useEVMStore().injectedProviderNames.length);
const isMobile = ref(usePlatformStore().isMobile);
alert('Hello from EVMLoginButtons.vue');
const toggleWalletOptions = () => {
if (isMobile.value) {
if (injected.value === 1) {
console.assert(useEVMStore().injectedProviderNames.length === 1, 'only one injected provider is supported for mobile');
alert('useInjectedProvider');
alert(`useInjectedProvider injected:${injected.value} isMobile:${isMobile.value}`);
emit('useInjectedProvider');
} else {
alert('showWalletConnect');
alert(`showWalletConnect injected:${injected.value} isMobile:${isMobile.value}`);
emit('showWalletConnect');
}
} else {
alert('showWalletOptions');
alert(`showWalletOptions injected:${injected.value} isMobile:${isMobile.value}`);
emit('showWalletOptions');
}
};
Expand Down

0 comments on commit 02f2769

Please sign in to comment.