Skip to content

Commit e040a21

Browse files
committed
fix: resolve issue with max limit not increasing after GitHub connection
1 parent abbb992 commit e040a21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/AirdropForm.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export const AirdropForm = ({ className, rateLimit }: AirdropFormProps) => {
5353
const [network, setSelectedNetwork] = useState("devnet");
5454
const [isFormValid, setIsFormValid] = useState(false);
5555

56+
if (rateLimit.maxAmountPerRequest > 5) {
57+
amountOptions.push(rateLimit.maxAmountPerRequest);
58+
}
59+
5660
const validateWallet = (address: string): boolean => {
5761
try {
5862
new PublicKey(address);
@@ -176,7 +180,7 @@ export const AirdropForm = ({ className, rateLimit }: AirdropFormProps) => {
176180
setIsFormValid(
177181
walletAddress !== "" &&
178182
amount !== null &&
179-
amount <= 5 &&
183+
amount <= 10 &&
180184
errors.wallet === "" &&
181185
errors.amount === "",
182186
);

0 commit comments

Comments
 (0)