Skip to content

Commit 5e68851

Browse files
committed
refactor: use ternary in reset region button
1 parent 5752b44 commit 5e68851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/UI/Ramp/Views/Settings/Settings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ function Settings() {
8383
</ListItem.Body>
8484
</ListItem.Content>
8585
</ListItem>
86-
{selectedRegion && (
86+
{selectedRegion ? (
8787
<Button
8888
variant={ButtonVariants.Secondary}
8989
size={ButtonSize.Lg}
9090
width={ButtonWidthTypes.Full}
9191
onPress={handleResetRegion}
9292
label={strings('app_settings.fiat_on_ramp.reset_region')}
9393
/>
94-
)}
94+
) : null}
9595
</Row>
9696
{isInternalBuild ? (
9797
<Row>

0 commit comments

Comments
 (0)