mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
build errors; shuffle voices around a little
This commit is contained in:
1 parent
3e428fae68
commit
fa3ec94059
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user