fix: a swap to a token absent from the bundled list shows no Token Out line at all #346
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while implementing #340. Not fixed there — same screen and same affected population, but an omitted line rather than a wrong number, so it fell outside that DoD.
In
src/shared/uniswap.jstheToken Outdetail line is pushed onlyif (outSymbol). A swap whose output token is absent from the bundled list has no symbol, so the line is not rendered at all: the approval screen shows aMin. receivedfigure with no statement of which token is being received.The
Token Inline already handles this correctly by falling back to the address, so the fix has a precedent in the same file. Affects every token not in the bundled list, which includes every newly listed token.Definition of done
Token Inline already does.Token Outline naming the address. Fails against current head — state the mutation and observed result.make checkgreen.