From fdfb1df7276df2d03a811b7f6639f7487e361e24 Mon Sep 17 00:00:00 2001 From: ebedoise Date: Thu, 1 Aug 2024 16:00:01 +0200 Subject: [PATCH] use xaman account directly in poll choices --- apps/poll/src/Choices.tsx | 2 +- packages/wallet/pickWallet.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/poll/src/Choices.tsx b/apps/poll/src/Choices.tsx index 4b1cae06..9c834582 100644 --- a/apps/poll/src/Choices.tsx +++ b/apps/poll/src/Choices.tsx @@ -3,7 +3,7 @@ import { useGetPollByIdQuery, useVoteMutation } from '@3shop/apollo'; import type { Nullable } from '@3shop/types'; import { Box, Flex, Spinner, useDisclosure, Heading, useToast, Text, styled } from '@3shop/ui'; -import { useAccount } from '@3shop/wallet'; +import { useAccount } from '@3shop/wallet/internal/xaman/XamanWalletProvider'; import { useState, useEffect } from 'react'; import { useParams } from 'react-router-dom'; import { ChoiceItem } from './ChoiceItem'; diff --git a/packages/wallet/pickWallet.ts b/packages/wallet/pickWallet.ts index a8a80ec8..0678f1eb 100644 --- a/packages/wallet/pickWallet.ts +++ b/packages/wallet/pickWallet.ts @@ -5,13 +5,7 @@ import { envVars } from '@3shop/config'; const xaman = envVars['NETWORK'] === Network_Enum.Xrpledger; export const useAccount = (...args: Parameters) => { - console.log('envVars: ', envVars['NETWORK']); - console.log('Network_Enum: ', Network_Enum); - console.log('xaman: ', xaman); if (xaman) - { - console.log('useXamanAccount: ', useXamanAccount()); return useXamanAccount(); - } return useRainbowAccount(...args); } \ No newline at end of file