Skip to content

Commit

Permalink
fix: modify proof of reserve value fetching to unshift values (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 authored Sep 9, 2024
1 parent a252b43 commit 1c3ee91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useNavigate } from 'react-router-dom';

import { Button, HStack, Image, Skeleton, Text } from '@chakra-ui/react';
import { Merchant } from '@models/merchant';
import { unshiftValue } from 'dlc-btc-lib/utilities';

interface MerchantTableItemProps {
merchant: Merchant;
Expand Down Expand Up @@ -34,7 +33,7 @@ export function MerchantTableItem({
<Image src={'/images/logos/dlc-btc-logo.svg'} alt={'dlcBTC Logo'} boxSize={'25px'} />
<Skeleton isLoaded={dlcBTCAmount !== undefined} h={'auto'} w={'150px'}>
<Text color={'white'} fontSize={'2xl'} fontWeight={800} h={'35px'}>
{dlcBTCAmount && unshiftValue(dlcBTCAmount)}
{Number(dlcBTCAmount?.toFixed(4))}
</Text>
</Skeleton>
</HStack>
Expand Down
2 changes: 1 addition & 1 deletion src/app/hooks/use-proof-of-reserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function useProofOfReserve(): UseProofOfReserveReturnType {
);
return {
merchant,
dlcBTCAmount: proofOfReserve,
dlcBTCAmount: unshiftValue(proofOfReserve),
};
});

Expand Down

0 comments on commit 1c3ee91

Please sign in to comment.