Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Jun 6, 2024
1 parent e8e4de7 commit e91ea74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/discover/components/DiscoverScreenContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default function DiscoverScreenContent() {
<Inset top="8px" bottom={{ custom: insets.bottom }}>
<DiscoverSearchContainer ref={ref} setShowSearch={setShowSearch} showSearch={showSearch}>
<Switcher showSearch={showSearch}>
<DiscoverHome />
<DiscoverSearch />
<DiscoverHome />
</Switcher>
</DiscoverSearchContainer>
</Inset>
Expand Down
2 changes: 2 additions & 0 deletions src/state/sync/RemoteCardsSync.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { useCardCollectionQuery } from '@/resources/cards/cardCollectionQuery';
import { remoteCardsStore } from '../remoteCards/remoteCards';
import { IS_TEST } from '@/env';

export const RemoteCardsSync = () => {
useCardCollectionQuery({
onSuccess: data => {
remoteCardsStore.getState().setCards(data);
},
enabled: !IS_TEST,
});

return null;
Expand Down
2 changes: 2 additions & 0 deletions src/state/sync/RemotePromoSheetSync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { remotePromoSheetsStore } from '../remotePromoSheets/remotePromoSheets';
import { usePromoSheetCollectionQuery } from '@/resources/promoSheet/promoSheetCollectionQuery';
import { PromoSheetOrder } from '@/graphql/__generated__/arc';
import { useRunChecks } from '@/components/remote-promo-sheet/runChecks';
import { IS_TEST } from '@/env';

export const RemotePromoSheetSync = () => {
usePromoSheetCollectionQuery(
Expand All @@ -10,6 +11,7 @@ export const RemotePromoSheetSync = () => {
onSuccess: data => {
remotePromoSheetsStore.getState().setSheets(data);
},
enabled: !IS_TEST,
}
);

Expand Down

0 comments on commit e91ea74

Please sign in to comment.