Set the selectedChord to Nothing when setting a key

This helps us avoid showing a chord from a key that the user did not whitelist.
This commit is contained in:
William Carroll 2020-04-19 00:31:42 +01:00
parent 8620d86fd0
commit 74ebb8e869

View file

@ -234,6 +234,7 @@ update msg model =
| whitelistedKeys = keys | whitelistedKeys = keys
, whitelistedChords = , whitelistedChords =
keys |> List.concatMap Theory.chordsForKey keys |> List.concatMap Theory.chordsForKey
, selectedChord = Nothing
} }
, Cmd.none , Cmd.none
) )