Skip to content

Commit

Permalink
chore: fix build attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
w84april committed Jul 24, 2024
1 parent 7db7381 commit 5169491
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/common/contexts/useYearn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ const defaultToken: TYToken = {
chainID: 1,
value: 0,
stakingValue: 0,
balance: zeroNormalizedBN,
supportedZaps: []
balance: zeroNormalizedBN
};

const YearnContext = createContext<TYearnContext>({
Expand Down Expand Up @@ -102,7 +101,7 @@ export const YearnContextApp = memo(function YearnContextApp({children}: {childr
const {address: userAddress} = useWeb3();
const {value: maxLoss, set: set_maxLoss} = useLocalStorageValue<bigint>('yearn.fi/max-loss', {
defaultValue: DEFAULT_MAX_LOSS,
parse: (str, fallback): bigint => (str ? deserialize(str) : fallback ?? DEFAULT_MAX_LOSS),
parse: (str, fallback): bigint => (str ? deserialize(str) : (fallback ?? DEFAULT_MAX_LOSS)),
stringify: (data: bigint): string => serialize(data)
});
const {value: zapSlippage, set: set_zapSlippage} = useLocalStorageValue<number>('yearn.fi/zap-slippage', {
Expand Down

0 comments on commit 5169491

Please sign in to comment.