Skip to content

Commit 5249e20

Browse files
committed
Remove unused param from useGasSlider
Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
1 parent 66b4e36 commit 5249e20

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

wormhole-connect/src/hooks/useGasSlider.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ type Props = {
77
destChain: Chain | undefined;
88
destToken: string;
99
route?: string;
10-
valid: boolean;
1110
isTransactionInProgress: boolean;
1211
};
1312

@@ -17,9 +16,9 @@ export const useGasSlider = (
1716
disabled: boolean;
1817
showGasSlider: boolean | undefined;
1918
} => {
20-
const { destChain, destToken, route, isTransactionInProgress, valid } = props;
19+
const { destChain, destToken, route, isTransactionInProgress } = props;
2120

22-
const disabled = !valid || isTransactionInProgress;
21+
const disabled = isTransactionInProgress;
2322
const toChainConfig = destChain ? config.chains[destChain] : undefined;
2423
const gasTokenConfig = toChainConfig
2524
? config.tokens[toChainConfig.gasToken]

wormhole-connect/src/views/v2/Bridge/Routes/SingleRoute.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ const SingleRoute = (props: Props) => {
128128
destChain,
129129
destToken,
130130
route: props.route.name,
131-
valid: true,
132131
isTransactionInProgress,
133132
});
134133

0 commit comments

Comments
 (0)