Skip to content

Layout nav styling breaks with capitalization mismatch #415

@ECWireless

Description

@ECWireless

Describe the bug

As mentioned in #411 (review), if a user is on their own account page and clicks the "history" tab, the "Orchestrators" button becomes active, rather than the "My Account" button. This is because the tab is linking with a lowercase address, while the nav comparison is only accounting for checksummed addresses.

To Reproduce

  1. Log in
  2. Go to your account page
  3. Note that the "My Account" button is highlighted as active
  4. Click the "history" tab
  5. Note that the "Orchestrators" button is highlighted as active, rather than "My Account"

Expected behavior

See above.

Screenshots

No response

Desktop OS

macOS

Desktop Browser

Chrome

Desktop Wallet

MetaMask

Desktop App/Extension Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Wallet

No response

Smartphone App/Extension Version

No response

Additional context

Simplest solution would be to add a lowercasePath variable in the main layout file for nav styling comparisons.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions