diff --git a/vocodes/src/App.tsx b/vocodes/src/App.tsx index 31063341cf..6dd7782430 100644 --- a/vocodes/src/App.tsx +++ b/vocodes/src/App.tsx @@ -42,7 +42,7 @@ class App extends React.Component { setSpeakerBySlug = (speakerSlug: string) : void => { console.log('speaker', speakerSlug); SPEAKERS.forEach(speaker => { - if (speaker.slug == speakerSlug) { + if (speaker.slug === speakerSlug) { this.setState({ speaker: speaker }); } }) diff --git a/vocodes/src/modes/speak/Avatar.tsx b/vocodes/src/modes/speak/Avatar.tsx index 348ac283f9..2886fa1887 100644 --- a/vocodes/src/modes/speak/Avatar.tsx +++ b/vocodes/src/modes/speak/Avatar.tsx @@ -20,7 +20,7 @@ class Avatar extends React.Component { const source = `https://via.placeholder.com/300x300/FF0000/FFFFFF?text=${this.props.currentSpeaker.getSlug()}`; return (
- + speaker image
); } diff --git a/vocodes/src/modes/speak/Form.tsx b/vocodes/src/modes/speak/Form.tsx index cad96fe746..9f688f9968 100644 --- a/vocodes/src/modes/speak/Form.tsx +++ b/vocodes/src/modes/speak/Form.tsx @@ -3,7 +3,8 @@ import React from 'react'; import { SpeakRequest } from './SpeakRequest'; import { Speaker } from '../../Speakers'; import { createColorMap, linearScale } from "@colormap/core"; -import { VIRIDIS, CIVIDIS, PLASMA, INFERNO, MAGMA, BLACK_WHITE, } from "@colormap/presets"; +//import { VIRIDIS, CIVIDIS, PLASMA, INFERNO, MAGMA, BLACK_WHITE, } from "@colormap/presets"; +import { MAGMA } from "@colormap/presets"; class Spectrogram { pixels: Uint8ClampedArray;