Skip to content

Commit

Permalink
0.8.8: fix condition on play
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Dec 14, 2022
1 parent cc3588b commit bc60978
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langame-website",
"version": "0.8.7",
"version": "0.8.8",
"private": true,
"dependencies": {
"@emotion/react": "^11.10.5",
Expand Down
7 changes: 5 additions & 2 deletions src/views/Play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ export default function Play() {
title={
!user ?
"Log in to create new conversation starters using AI" :
(keys.length === 0 ||
(
!keys ||
keys?.length === 0 ||
!keys[0]) ?
"It seems your account is not properly configured. " +
"Please check your API keys " +
Expand All @@ -196,7 +198,8 @@ export default function Play() {
<span>
<LoadingButton
disabled={
keys.length === 0 ||
!keys ||
keys?.length === 0 ||
!keys[0] ||
autocompleteTopics.length === 0 || !user}
loading={loading}
Expand Down

0 comments on commit bc60978

Please sign in to comment.