Skip to content

Commit 0d12a10

Browse files
authored
fix:market action btn opt (#8849)
1 parent 4f5c106 commit 0d12a10

File tree

1 file changed

+1
-3
lines changed
  • packages/kit/src/views/Market/MarketDetailV2/components/SwapPanel/components

1 file changed

+1
-3
lines changed

packages/kit/src/views/Market/MarketDetailV2/components/SwapPanel/components/ActionButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,9 @@ export function ActionButton({
234234
const handlePress = useCallback(
235235
async (event: GestureResponderEvent) => {
236236
setHasClickedWithoutAmount(true);
237-
238237
if (!hasAmount && !hasClickedWithoutAmount) {
239238
return;
240239
}
241-
242240
if (noAccount) {
243241
navigation.pushModal(EModalRoutes.OnboardingModal, {
244242
screen: EOnboardingPages.GetStarted,
@@ -296,7 +294,7 @@ export function ActionButton({
296294
<Button
297295
size={gtMd ? 'medium' : 'large'}
298296
disabled={isButtonDisabled}
299-
onPress={shouldDisable ? undefined : handlePress}
297+
onPress={handlePress}
300298
loading={createAddressLoading || otherProps.loading}
301299
{...otherProps}
302300
{...buttonStyleProps}

0 commit comments

Comments
 (0)