fix ts errors

This commit is contained in:
thesn10
2026-05-26 21:46:20 +02:00
parent 5da7fb2b97
commit 1dd85b5b9c
4 changed files with 7 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import React from 'react'
import { YStack, XStack, Text } from 'tamagui'
import { StatusBadge } from './StatusBadge'
import type { EscrowAccountWithPda } from '@descro/sdk'
import { lamports } from '@solana/kit'
import { lamportsToSolString } from '@/util/lamports'
function truncAddr(addr: string): string {
return `${addr.slice(0, 4)}${addr.slice(-4)}`
@@ -17,7 +18,7 @@ interface EscrowCardProps {
export function EscrowCard({ item, selected, onSelect }: EscrowCardProps) {
const { pda, account } = item
const solAmount = lamportsToSolString(account.amount, 4)
const solAmount = lamportsToSolString(lamports(account.amount), 4)
return (
<YStack