leboncoin/spark-android

[FR]: Fix compilation errors in Chip.md example

Geschlossen

#2.104 geöffnet am 27.07.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Kotlin (31 Forks)auto 404
componentdocumentationgood first issuepriority:HIGH

Repository-Metriken

Stars
 (85 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T 9h) (73 gemergte PRs in 30 T)

Beschreibung

Describe the problem

The multiple-selection code example in Chip.md has two errors:

  1. filter.name called on a String (String has no .name property)
  2. Assignment to unionSelected which is never declared (the variable is selectedFilters)

Describe the solution

Fix both lines:

text = filter,
selectedFilters = if (selected) selectedFilters - filter else selectedFilters + filter

Additional context

Priority: High. Effort: XS.

Contributor Guide