Skip to content

Trade and Transport ships are swapped in Account statistics #3441

@boopooooooooo

Description

@boopooooooooo

Describe the bug
Left column of Ship type don't match the statistics

To Reproduce
Steps to reproduce the behavior:

  1. Go to account page
  2. Scroll down to Ship Arrivals

Expected behavior
Matching left column to accurate stats

Screenshots
Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Firefox
  • Version: 0.30.9 (openfront version)

Additional context
Lines 25-28 in src/core/StatsSchemas are commented out, might be the cause?

// export const unitTypeToBoatUnit = {
// [UnitType.TradeShip]: "trade",
// [UnitType.TransportShip]: "trans",
// } as const satisfies Record<BoatUnitType, BoatUnit>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions