disable button if no voice selected

This commit is contained in:
bflatastic committed 2024-09-11 18:27:39 +07:00
1 parent 6fef9167ce
commit db4867edd6
1 file changed
+2 -2
@@ -484,7 +484,7 @@ export const GenerateTts = ({
/>
</div>
<span className="text-truncate" style={{ maxWidth: "300px" }}>
{voiceTitle || "No voice selected"}
{voiceTitle || "Click here to select a voice..."}
</span>
</div>
<FontAwesomeIcon icon={faChevronRight} />
@@ -525,7 +525,7 @@ export const GenerateTts = ({
variant={"action"}
icon={faWaveformLines}
onClick={handleEnqueueTts}
disabled={textBuffer.length === 0}
disabled={textBuffer.length === 0 || voiceToken === null}
isLoading={isAudioLoading}
/>
)}