Skip to content

Commit

Permalink
fix: classification pronounciation
Browse files Browse the repository at this point in the history
  • Loading branch information
castdrian committed Jun 24, 2024
1 parent 20a7625 commit 0e394d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoreDex/Views/DexEntryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ struct DexEntryView: View {
print(error.localizedDescription)
}

let classificationText = pokemon.classification != nil ? "The \(pokemon.classification!)!" : ""
let classificationText = pokemon.classification != nil ? "The \(pokemon.classification!.split(separator: " ").dropLast().joined(separator: " ")) POH-kee-MAHN!" : ""
let typeText = pokemon.types.count == 2 ? "\(pokemon.types.first!.name) and \(pokemon.types.last!.name) type!" : "\(pokemon.types.first!.name) type!"
let preevolutionText = (pokemon.preevolutions?.first != nil) ? "The evolution of \(pokemon.preevolutions!.first!.species)!" : ""
let flavorText = pokemon.flavorTexts.first?.flavor ?? ""
Expand Down

0 comments on commit 0e394d3

Please sign in to comment.