Skip to content

Commit

Permalink
TW-1174 Remove a type error
Browse files Browse the repository at this point in the history
  • Loading branch information
keshan3262 committed Nov 24, 2023
1 parent 678bc82 commit 6563f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/temple/front/baking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useMemo } from 'react';

import retry from 'async-retry';
import BigNumber from 'bignumber.js';
import useSWR, { useSWRConfig } from 'swr';
import useSWR, { unstable_serialize, useSWRConfig } from 'swr';

import { BoundaryError } from 'app/ErrorBoundary';
import {
Expand All @@ -13,7 +13,7 @@ import {
} from 'lib/apis/baking-bad';
import { getAccountStatsFromTzkt, isKnownChainId, TzktRewardsEntry, TzktAccountType } from 'lib/apis/tzkt';
import { t } from 'lib/i18n';
import { getCacheKey, useRetryableSWR } from 'lib/swr';
import { useRetryableSWR } from 'lib/swr';
import type { ReactiveTezosToolkit } from 'lib/temple/front';

import { getOnlineStatus } from './get-online-status';
Expand All @@ -25,7 +25,7 @@ function getDelegateCacheKey(
chainId: string | nullish,
shouldPreventErrorPropagation: boolean
) {
return getCacheKey(['delegate', tezos.checksum, address, chainId, shouldPreventErrorPropagation]);
return unstable_serialize(['delegate', tezos.checksum, address, chainId, shouldPreventErrorPropagation]);
}

export function useDelegate(address: string, suspense = true, shouldPreventErrorPropagation = true) {
Expand Down

0 comments on commit 6563f36

Please sign in to comment.