Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
HuberTRoy committed Dec 19, 2023
1 parent 1da968f commit a699c60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/containers/ProjectMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function useProjectMetadataImpl() {
const result = await catSingle(cid);

const rawMeta = JSON.parse(Buffer.from(result).toString('utf8'));
console.warn(rawMeta);
return projectMetadataSchema.validate({ type: 'SUBQUERY', ...rawMeta });
};

Expand Down
3 changes: 0 additions & 3 deletions src/hooks/useSwapData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { limitContract, makeCacheKey } from '@utils/limitation';
import assert from 'assert';
import { BigNumber } from 'ethers';
import { formatUnits } from 'ethers/lib/utils';
import moment from 'moment';

import { useWeb3Store } from 'src/stores';

Expand Down Expand Up @@ -100,12 +99,10 @@ export function useSellSQTQuota(account: string): AsyncMemoReturn<BigNumber> {
export function useSwapOrderId(swapFrom: string): { orderId: string | undefined; loading: boolean } {
const mountedRef = React.useRef(true);
const [orderId, setOrderId] = React.useState<string>();
const [now] = React.useState<Date>(moment().toDate());
// TODO: swapFrom now is reversed should be equal to contracts.
const { data, loading } = useGetOrdersQuery({
variables: {
swapFrom,
now,
},
});

Expand Down

0 comments on commit a699c60

Please sign in to comment.