Summary
Several UI interactions — showing edit controls, hiding sell buttons for non-holders — depend on whether the viewing wallet is the owner of a resource. A shared helper that compares a target address against the connected wallet address should be used consistently across these checks.
Scope
- Add
isOwnWallet(address: string, connectedAddress: string | null): boolean utility
- Returns
false when connectedAddress is null (wallet not connected)
- Comparison is case-insensitive to handle address casing differences
- Add unit tests for: matching addresses, non-matching, null connected address, different casing
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Several UI interactions — showing edit controls, hiding sell buttons for non-holders — depend on whether the viewing wallet is the owner of a resource. A shared helper that compares a target address against the connected wallet address should be used consistently across these checks.
Scope
isOwnWallet(address: string, connectedAddress: string | null): booleanutilityfalsewhenconnectedAddressis null (wallet not connected)Acceptance Criteria
truefor matching addressesfalsefor non-matching addressesfalsewhen connected address is nullETA: 12 hours
Coordinate on Telegram