@rango-dev/widget-embedded 0.58.1-next.4 → 0.58.1-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -116,14 +116,9 @@ export function Inputs(props: PropTypes) {
|
|
|
116
116
|
loadingBalance={fetchingBalance}
|
|
117
117
|
tooltipContainer={getContainer()}
|
|
118
118
|
onSelectMaxBalance={() => {
|
|
119
|
-
const tokenBalanceReal = numberToString(
|
|
120
|
-
fromBalanceAmount,
|
|
121
|
-
fromTokenBalance?.decimals
|
|
122
|
-
);
|
|
123
|
-
|
|
124
119
|
// if a token hasn't any value, we will reset the input by setting an empty string.
|
|
125
|
-
const nextInputAmount =
|
|
126
|
-
?
|
|
120
|
+
const nextInputAmount = fromBalanceAmount.isGreaterThan(ZERO)
|
|
121
|
+
? fromBalanceAmount.toFixed()
|
|
127
122
|
: '';
|
|
128
123
|
|
|
129
124
|
setInputAmount(nextInputAmount);
|