Skip to content

Commit

Permalink
fix: tommy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Aug 13, 2024
1 parent 997df52 commit 92852c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions apps/gateway-ui/src/GatewayApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,6 @@ export class GatewayApi {
}
};

// TODO: these don't exist yet

spendEcash = async (
federationId: string,
amount: number
Expand Down
4 changes: 3 additions & 1 deletion apps/gateway-ui/src/components/walletCard/WalletCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const WalletCard = React.memo(function WalletCard({
const { t } = useTranslation();

const balanceData = useMemo(
// Structure the data for the pie chart:
// title, value: balance_msats, formattedValue, color
() => [
{
title: t('wallet.ecash'),
Expand Down Expand Up @@ -57,7 +59,7 @@ export const WalletCard = React.memo(function WalletCard({
},
{
title: t('wallet.onchain'),
value: balances.onchain_balance_sats * 1000, // Convert sats to msats
value: balances.onchain_balance_sats * 1000,
formattedValue: formatValue(
(balances.onchain_balance_sats * 1000) as MSats,
unit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const ReceiveEcash: React.FC<ReceiveEcashProps> = ({ setShowSelector }) => {
const text = await navigator.clipboard.readText();
setEcashNote(text);
const result = await gatewayApi.receiveEcash(text);
console.log('result', result);
setClaimedAmount(result);
setShowSelector(false);
} catch (err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SendLightning: React.FC<SendLightningProps> = () => {
return (
<Box>
<Text>{t('wallet-modal.send.lightning-instructions')}</Text>
{/* Add more UI elements and logic for withdrawing via Lightning */}
{/* TODO: actually implement this after we get fedimint side working*/}
</Box>
);
};
Expand Down

0 comments on commit 92852c9

Please sign in to comment.