Skip to content

Commit

Permalink
0.8.1: fix gen
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Dec 3, 2022
1 parent 5986656 commit 1ce6f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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.0",
"version": "0.8.1",
"private": true,
"dependencies": {
"@emotion/react": "^11.10.5",
Expand Down
5 changes: 2 additions & 3 deletions src/views/Play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ import { langameApiUrl } from "../utils/constants";
export default function Play() {
const firestore = useFirestore();
const preferences = usePreferences();
const { data: user, status } = useUser();
const { data: user } = useUser();
const apiKeysCollection = collection(firestore, "api_keys");
const apiKeysQuery = status === "success" && preferences?.currentOrganization ?
query(collection(firestore, "usages")) : query(apiKeysCollection, where("owner", "==",
const apiKeysQuery = query(apiKeysCollection, where("owner", "==",
preferences?.currentOrganization || "%"
));
const { data: keys } = useFirestoreCollectionData(apiKeysQuery, {
Expand Down

0 comments on commit 1ce6f02

Please sign in to comment.