Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Shebuka committed Jul 23, 2024
1 parent 9d26939 commit 0df06b2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/price-graph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ function PriceGraph({ item, itemId }) {
const gameMode = useSelector((state) => state.settings.gameMode);
const { status, data } = useQuery(
`historical-price-${itemId}`,
`{
historicalItemPrices(id:"${itemId}", gameMode: ${gameMode}){
`query TarkovDevHistorical {
historicalItemPrices(id: "${itemId}", gameMode: ${gameMode}) {
price
priceMin
timestamp
}
}`,
}`.replace(/\s{2,}/g, ' '),
);

const { dayTicks, tickLabels } = useMemo(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/server-status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import './index.css';
function ServerStatus() {
const { status, data } = useQuery(
`server-status`,
`{
`query TarkovDevStatus {
status {
generalStatus {
name
Expand All @@ -24,7 +24,7 @@ function ServerStatus() {
solveTime
}
}
}`,
}`.replace(/\s{2,}/g, ' '),
);
const { t } = useTranslation();

Expand Down
2 changes: 1 addition & 1 deletion src/features/crafts/do-fetch-crafts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CraftsQuery extends APIQuery {
id
}
}
}`;
}`.replace(/\s{2,}/g, ' ');

const craftsData = await this.graphqlRequest(query);

Expand Down
2 changes: 1 addition & 1 deletion src/features/items/do-fetch-items.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class ItemsQuery extends APIQuery {
sellOfferFeeRate
sellRequirementFeeRate
}
}`),
}`.replace(/\s{2,}/g, ' ')),
new Promise(resolve => {
if (prebuild) {
return resolve({});
Expand Down

0 comments on commit 0df06b2

Please sign in to comment.