Skip to content

Commit

Permalink
fix(react): missing accepted parameter type (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Oct 8, 2024
1 parent 07b0fab commit 306666a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-tables-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@reactive-dot/react": patch
---

Fixed missing accepted parameter type for `useNativeTokenAmountFromNumber` partial application.
2 changes: 1 addition & 1 deletion packages/react/src/hooks/use-native-token-amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function useNativeTokenAmountFromNumber(
chainSpecData.properties.tokenSymbol,
);
default:
return (number: number) =>
return (number: number | string) =>
DenominatedNumber.fromNumber(
number,
chainSpecData.properties.tokenDecimals,
Expand Down

0 comments on commit 306666a

Please sign in to comment.