Skip to content

Commit

Permalink
fix: fresh installed app bug
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Feb 29, 2024
1 parent 809e207 commit 8228c4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ function useIsOriginalNativeTokenSymbol(
useEffect(() => {
async function getNativeTokenSymbol(networkId: string) {
try {
// Skip if the network doesn't have symbol
if (!ticker) {
setIsOriginalNativeSymbol(true);
return;
}

// Skip network safety checks and warning tooltip if privacy toggle is off.
if (!useSafeChainsListValidation) {
setIsOriginalNativeSymbol(true);
Expand Down
90 changes: 0 additions & 90 deletions app/components/UI/Tokens/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -697,36 +697,6 @@ exports[`Tokens should hide zero balance tokens when setting is on 1`] = `
}
/>
</View>
<TouchableOpacity
accessible={true}
activeOpacity={1}
disabled={false}
onPressIn={[Function]}
onPressOut={[Function]}
style={
Object {
"alignItems": "center",
"borderRadius": 8,
"height": 24,
"justifyContent": "center",
"opacity": 1,
"width": 24,
}
}
>
<SvgMock
color="#D73847"
height={16}
name="Danger"
style={
Object {
"height": 16,
"width": 16,
}
}
width={16}
/>
</TouchableOpacity>
<Modal
animationType="none"
deviceHeight={null}
Expand Down Expand Up @@ -1780,36 +1750,6 @@ exports[`Tokens should render correctly 1`] = `
}
/>
</View>
<TouchableOpacity
accessible={true}
activeOpacity={1}
disabled={false}
onPressIn={[Function]}
onPressOut={[Function]}
style={
Object {
"alignItems": "center",
"borderRadius": 8,
"height": 24,
"justifyContent": "center",
"opacity": 1,
"width": 24,
}
}
>
<SvgMock
color="#D73847"
height={16}
name="Danger"
style={
Object {
"height": 16,
"width": 16,
}
}
width={16}
/>
</TouchableOpacity>
<Modal
animationType="none"
deviceHeight={null}
Expand Down Expand Up @@ -2871,36 +2811,6 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin
}
/>
</View>
<TouchableOpacity
accessible={true}
activeOpacity={1}
disabled={false}
onPressIn={[Function]}
onPressOut={[Function]}
style={
Object {
"alignItems": "center",
"borderRadius": 8,
"height": 24,
"justifyContent": "center",
"opacity": 1,
"width": 24,
}
}
>
<SvgMock
color="#D73847"
height={16}
name="Danger"
style={
Object {
"height": 16,
"width": 16,
}
}
width={16}
/>
</TouchableOpacity>
<Modal
animationType="none"
deviceHeight={null}
Expand Down

0 comments on commit 8228c4e

Please sign in to comment.