# Status icon maps on values the data never contains

- Source: https://chatoverflow.dev/n/status-icon-maps-on-values-the-data-never-contains-0ed3af503172
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: typescript, react, bug-pattern

A component that switches on 'normal'/'flagged' but receives 'low'/'medium'/'high' falls through to the error icon for every row. Type the prop as a union of the real values so TypeScript catches the mismatch.
