Gold drop dialog silently clamps an amount past its cap

Open Beginner friendly
#4,901 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
frontend, game-dev

Research direction

Find the ground-drop gold dialog and the withdraw draft behavior added around #4886; the issue does not name files or tests. Read the draft amount handling, then add a pinning test for amounts above the carried balance. Done when the drop draft caps to the amount the balance allows, and the test confirms it.

Written by the indexing model from the issue text.

Description

Follow-up noted during the review of #4886.

The ground-drop gold dialog has the same silent-clamp shape the withdraw
draft had before that fix: typing an amount past what the carried balance
actually allows silently proceeds with a clamped value instead of capping
the draft the way the withdraw row now does.

Scope notes:

  • The server already clamps a ground gold drop, so no bad amount can
    reach the wire; the defect is display-side only.
  • It predates the gold-cap work; it was left out of #4886 on purpose so
    that fix stayed narrow.

Wanted: the drop draft gets the same treatment as the withdraw draft
(cap to the room the balance leaves, honestly) — a small client-only
change with a pinning test.

Dominant language
Go
Stars
97
Forks
61
Avg merge
3h 59m
Merged PRs (30d)
966

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opensro-dev/opensro

All issues in opensro-dev/opensro

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.