diff --git a/frontend/Components/LnPreview/index.tsx b/frontend/Components/LnPreview/index.tsx index 4fb68ed5..4c2369b1 100644 --- a/frontend/Components/LnPreview/index.tsx +++ b/frontend/Components/LnPreview/index.tsx @@ -23,7 +23,7 @@ export const LnPreview: React.FC = ({ }) => { const theme = useTheme() const { t } = useTranslation('common') - const { active, payInvoice } = React.useContext(WalletContext) + const { type, payInvoice } = React.useContext(WalletContext) const { getSatoshiSymbol } = React.useContext(AppContext) const bottomSheetInvoiceRef = React.useRef(null) const [decodedLnUrl, setDecodedLnUrl] = useState< @@ -107,7 +107,7 @@ export const LnPreview: React.FC = ({ {t('lnPayment.copy')} - {active && ( + {type && ( {t('lnPayment.pay')} diff --git a/frontend/Contexts/WalletContext.tsx b/frontend/Contexts/WalletContext.tsx index e0b52b96..4138f430 100644 --- a/frontend/Contexts/WalletContext.tsx +++ b/frontend/Contexts/WalletContext.tsx @@ -87,12 +87,9 @@ export const WalletContextProvider = ({ children }: WalletContextProviderProps): } const updateWallet: () => Promise = async () => { - console.log('config', config) - console.log('type', type) if (!config || !type) return const client = getClient() - console.log('client', client) if (client) { client.getBalance().then((response) => { if (response?.status === 200) {