Skip to content

Commit

Permalink
fix: PR HQM-377 clean
Browse files Browse the repository at this point in the history
  • Loading branch information
iGroza committed Jun 21, 2024
1 parent d0535c0 commit ef8dbe4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/components/value-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const ValueSelector = ({

const handleValuePress = useCallback(
(value: AwaitValue, idx: number) => {
Logger.log('ValueSelector', 'handleValuePress', idx, {value});
if (idx > -1) {
setSelected(idx);
onValueSelected?.(idx, value);
Expand Down
4 changes: 2 additions & 2 deletions src/screens/SwapStack/swap-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const SwapScreen = observer(() => {

if (!Token.tokens?.[currentWallet.address]) {
await Promise.all([
Token.fetchTokens(true, true),
Token.fetchTokens(true),
awaitForEventDone(Events.onBalanceSync),
]);
}
Expand Down Expand Up @@ -362,7 +362,7 @@ export const SwapScreen = observer(() => {
});
try {
await Promise.all([
Token.fetchTokens(true, true),
Token.fetchTokens(true),
awaitForEventDone(Events.onBalanceSync),
]);
} catch {
Expand Down
5 changes: 0 additions & 5 deletions src/screens/value-selector-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const ValueSelectorScreen = () => {
useFocusEffect(
useCallback(() => {
return () => {
Logger.log('✅ ValueSelectorScreen', 'useFocusEffect', {selectedIndex});
if (selectedIndex.current > -1 && values[selectedIndex.current]) {
app.emit(
`value-selected${eventSuffix}`,
Expand All @@ -55,10 +54,6 @@ export const ValueSelectorScreen = () => {
(index: number, value: any) => {
selectedIndex.current = index;
values[index] = value;
Logger.log('ValueSelectorScreen', 'onValueSelected', {
index,
closeOnSelect,
});
if (closeOnSelect) {
navigation.goBack();
}
Expand Down

0 comments on commit ef8dbe4

Please sign in to comment.