Skip to content

Commit

Permalink
fix: remove double await
Browse files Browse the repository at this point in the history
fix #75
  • Loading branch information
gioboa committed Feb 20, 2023
1 parent de573d6 commit 97c9f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/headless/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const Tab = component$(
const thisTabIndex = useSignal(0);

useMount$(async () => {
thisTabIndex.value = await await contextService.getNextTabIndex();
thisTabIndex.value = await contextService.getNextTabIndex();
});
const isSelected = () =>
thisTabIndex.value === contextService.selectedIndex.value;
Expand Down Expand Up @@ -139,7 +139,7 @@ export const TabPanel = component$(({ ...props }: TabPanelProps) => {
const isSelected = () =>
thisPanelIndex.value === contextService.selectedIndex.value;
useMount$(async () => {
thisPanelIndex.value = await await contextService.getNextPanelIndex();
thisPanelIndex.value = await contextService.getNextPanelIndex();
});
return (
<div
Expand Down

0 comments on commit 97c9f0e

Please # to comment.