[Bug] maxSizeMB prop silently accepted as NaN / 0 / negative
Débutant
buggood first issuebountybounty:1arc-testnetreward-usdc
0 ★
Poids du clone léger
Mise à jour
Description
I will pay for a fixed file - details below.
## Bug
In [`components/FileUpload.tsx`](https://github.com/Hazyshades/Sendly-Test-Repo/blob/main/components/FileUpload.tsx) `maxSizeMB = 5` is trusted blindly. `maxSizeMB={NaN}` makes every comparison false (all files pass); `{0}` or negative rejects everything with nonsense copy like `exceeds 0MB limit`.
Add a dev-time guard: validate/coerce the prop, fall back to default with a `console.warn` in development builds.
## Acceptance criteria
- [ ] Invalid `maxSizeMB` values cannot produce all-pass or all-fail validation
- [ ] Dev warning names the bad value and the fallback used
- [ ] Production behavior stays silent and safe
## Reward
I will pay **10 USDC (test tokens)** on **ARC Testnet** for a merged fix — same flow as #53, but payout is test USDC on ARC, not Base.
How to claim:
1. Comment `/attempt` with this issue number before you start.
2. Open a PR referencing this issue (`Fixes #`).
3. After the PR is reviewed and merged, comment your **ARC testnet EVM address** here — you receive 10 test USDC on ARC.
Issues similaires
Tout voir
TypeScript
Débutant
[Good First Issue] 🐡 Add new Japan Fact 251 - Beginner-Friendly Open-source Contribution
## 🟢 Good First Issue: Add Japan Fact #251 — Beginner-Friendly Open Source Contribution ![Time: <1 minute](h…
Mise à jour
TypeScript
Débutant
Error bucketing
It would be great to bucket the errors in different types i.e. Code exception, configuration exception, envir…
Mise à jour
TypeScript
Débutant
LP lock links omit the /token|lp/ URL segment, causing wrong-type lookups on the detail page
## Summary Lock detail links should include the lock's kind in the URL, e.g. `/app/lock/lp/:id` or `/app/loc…
Mise à jour