File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ export const ERC1155ClaimButton: React.FC<ClaimButtoProps> = ({
47
47
const debouncedQuantity = useDebounce ( quantity , 500 ) ;
48
48
49
49
const claimConditions = useClaimConditions ( contract ) ;
50
- const activeClaimCondition = useActiveClaimCondition ( contract , tokenId ) ;
51
-
50
+ const activeClaimCondition = useActiveClaimCondition ( contract , tokenId , {
51
+ withAllowList : true ,
52
+ } ) ;
52
53
const claimIneligibilityReasons = useClaimIneligibilityReasons (
53
54
contract ,
54
55
{
@@ -119,7 +120,7 @@ export const ERC1155ClaimButton: React.FC<ClaimButtoProps> = ({
119
120
}
120
121
121
122
const snapshotClaimable = activeClaimCondition . data ?. snapshot ?. find (
122
- ( u ) => u . address === address ,
123
+ ( u ) => u . address . toLowerCase ( ) === address ?. toLowerCase ( ) ,
123
124
) ?. maxClaimable ;
124
125
125
126
if ( snapshotClaimable ) {
Original file line number Diff line number Diff line change @@ -45,8 +45,9 @@ export const ERC20ClaimButton: React.FC<ClaimButtoProps> = ({
45
45
const debouncedQuantity = useDebounce ( quantity , 500 ) ;
46
46
47
47
const claimConditions = useClaimConditions ( contract ) ;
48
- const activeClaimCondition = useActiveClaimCondition ( contract ) ;
49
-
48
+ const activeClaimCondition = useActiveClaimCondition ( contract , undefined , {
49
+ withAllowList : true ,
50
+ } ) ;
50
51
const claimIneligibilityReasons = useClaimIneligibilityReasons ( contract , {
51
52
quantity : debouncedQuantity ,
52
53
walletAddress : address || "" ,
@@ -115,7 +116,7 @@ export const ERC20ClaimButton: React.FC<ClaimButtoProps> = ({
115
116
}
116
117
117
118
const snapshotClaimable = activeClaimCondition . data ?. snapshot ?. find (
118
- ( u ) => u . address === address ,
119
+ ( u ) => u . address . toLowerCase ( ) === address ?. toLowerCase ( ) ,
119
120
) ?. maxClaimable ;
120
121
121
122
if ( snapshotClaimable ) {
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ export const ERC721ClaimButton: React.FC<ClaimButtoProps> = ({
46
46
const debouncedQuantity = useDebounce ( quantity , 500 ) ;
47
47
48
48
const claimConditions = useClaimConditions ( contract ) ;
49
- const activeClaimCondition = useActiveClaimCondition ( contract ) ;
49
+ const activeClaimCondition = useActiveClaimCondition ( contract , undefined , {
50
+ withAllowList : true ,
51
+ } ) ;
50
52
const claimIneligibilityReasons = useClaimIneligibilityReasons ( contract , {
51
53
quantity : debouncedQuantity ,
52
54
walletAddress : address || "" ,
@@ -103,7 +105,7 @@ export const ERC721ClaimButton: React.FC<ClaimButtoProps> = ({
103
105
}
104
106
105
107
const snapshotClaimable = activeClaimCondition . data ?. snapshot ?. find (
106
- ( u ) => u . address === address ,
108
+ ( u ) => u . address . toLowerCase ( ) === address ?. toLowerCase ( ) ,
107
109
) ?. maxClaimable ;
108
110
109
111
if ( snapshotClaimable ) {
You can’t perform that action at this time.
0 commit comments