File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
packages/thirdweb/src/react/core/hooks Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Show all tokens in payment selection screen, even if not enough balance
Original file line number Diff line number Diff line change @@ -122,9 +122,6 @@ export function usePaymentMethods(options: {
122
122
page += 1 ;
123
123
}
124
124
125
- const requiredDollarAmount =
126
- Number . parseFloat ( destinationAmount ) * destinationToken . priceUsd ;
127
-
128
125
// sort by dollar balance descending
129
126
owned . sort ( ( a , b ) => {
130
127
const aDollarBalance =
@@ -140,13 +137,6 @@ export function usePaymentMethods(options: {
140
137
141
138
for ( const b of owned ) {
142
139
if ( b . originToken && b . balance > 0n ) {
143
- const dollarBalance =
144
- Number . parseFloat ( toTokens ( b . balance , b . originToken . decimals ) ) *
145
- b . originToken . priceUsd ;
146
- if ( b . originToken . priceUsd && dollarBalance < requiredDollarAmount ) {
147
- continue ;
148
- }
149
-
150
140
if (
151
141
includeDestinationToken &&
152
142
b . originToken . address . toLowerCase ( ) ===
You can’t perform that action at this time.
0 commit comments