Skip to content

Commit

Permalink
feature(network-selection): left overs
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Aug 2, 2024
1 parent 85e7d66 commit 8c21f4e
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ export const CreateExchangeButton = ({
const isSancho = network === Chain.Network.Sancho
const isBuy = orderType === 'buy'

const title =
isBuy
? isPreprod
? strings.createOrderPreprodFaucetButtonText
: isSancho
? strings.createOrderSanchonetFaucetButtonText
: strings.proceed
const title = isBuy
? isPreprod
? strings.createOrderPreprodFaucetButtonText
: isSancho
? strings.createOrderSanchonetFaucetButtonText
: strings.proceed
: strings.proceed

const handleOnPress = () => {
if (isPreprod && isBuy) {
Expand All @@ -50,7 +49,7 @@ export const CreateExchangeButton = ({
onPress()
}

const isButtonDisabled = !(isPreprod || (isSancho && isBuy)) && disabled
const isButtonDisabled = !(isPreprod || (isSancho && isBuy)) || disabled

return (
<View style={[styles.actions, style]}>
Expand All @@ -71,7 +70,7 @@ const useStyles = () => {
const {atoms} = useTheme()
const styles = StyleSheet.create({
actions: {
...atoms.p_lg,
...atoms.p_lg,
},
})
return styles
Expand Down

0 comments on commit 8c21f4e

Please sign in to comment.