Skip to content

Commit

Permalink
fix: decimal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AMIRKHANEF committed Dec 22, 2024
1 parent 0ca0644 commit d40db41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const transformPayouts = (address: string, payouts: Payout[], network: DropdownO
data: [] as PayoutsProp[],
network
};
const decimal = selectableNetworks.find(({ genesisHash }) => (genesisHash as unknown as string) === network.text)?.decimals[0];
const decimal = selectableNetworks.find(({ genesisHash }) => (genesisHash[0] as unknown as string) === network.value)?.decimals[0];

// Sanitize each transfer item and accumulate results
const result = payouts.reduce((accumulator, payout) => {
Expand Down

0 comments on commit d40db41

Please sign in to comment.