anonymous users tts results

This commit is contained in:
Brandon Thomas committed 2021-06-26 13:45:33 -04:00
1 parent cdea747f97
commit e3ba4ca349
1 file changed
+2 -2
@@ -91,7 +91,7 @@ function TtsResultViewFc(props: Props) {
// NB: Not respected in firefox: https://stackoverflow.com/a/28468261
let audioDownloadFilename = `vocodes-${ttsInferenceResult.tts_model_token.replace(':', '')}.wav`;
let spectrogramLink = `https://storage.googleapis.com/dev-vocodes-public${ttsInferenceResult?.public_bucket_wav_audio_path}`.replace(".wav", ".json");
let spectrogramLink = `https://storage.googleapis.com/dev-vocodes-public${ttsInferenceResult?.public_bucket_spectrogram_path}`;
let durationSeconds = ttsInferenceResult?.duration_millis / 1000;
@@ -122,7 +122,7 @@ function TtsResultViewFc(props: Props) {
}
let creatorDetails = <span>Anonymous user</span>;
if (ttsInferenceResult.maybe_creator_user_token !== undefined) {
if (!!ttsInferenceResult.maybe_creator_user_token) {
let creatorLink = `/profile/${ttsInferenceResult.maybe_creator_username}`;
creatorDetails = (
<span>