build errors; shuffle voices around a little

This commit is contained in:
Brandon Thomas committed 2020-10-01 21:31:01 -04:00
1 parent 3e428fae68
commit fa3ec94059
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ class App extends React.Component<Props, State> {
let selectedSpeaker = undefined;
speakers.forEach(speaker => {
if (speaker.getSlug() == this.state.speaker.getSlug()) {
if (speaker.getSlug() === this.state.speaker.getSlug()) {
selectedSpeaker = speaker;
}
})
+2 -2
View File
@@ -129,7 +129,7 @@ const SPEAKERS : Speaker[] = [
avatarUrl: "anderson-cooper.jpg",
fullUrl: "anderson-cooper-full.png",
voiceQuality: 4.9,
categories: ["politics", "news"],
categories: ["news"],
}),
Speaker.fromJson({
name: "Arnold Schwarzenegger",
@@ -156,7 +156,7 @@ const SPEAKERS : Speaker[] = [
avatarUrl: "ben-shapiro.jpg",
fullUrl: "ben-shapiro-full.png",
voiceQuality: 6.8,
categories: ["politics"],
categories: ["politics", "news"],
}),
Speaker.fromJson({
name: "Ben Stein",
@@ -23,7 +23,7 @@ class SpeakerDropdown extends React.Component<Props, State> {
}
public render() {
if (this.props.currentSpeakerCategory.getSlug() == 'all') {
if (this.props.currentSpeakerCategory.getSlug() === 'all') {
return this.renderAllByQuality();
} else {
return this.renderSortedCategory();