Skip to content

Commit

Permalink
rebase with main
Browse files Browse the repository at this point in the history
Signed-off-by: fc-santos <[email protected]>
  • Loading branch information
fc-santos committed Feb 22, 2025
2 parents 63681ac + 92e40d3 commit 810b365
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/legacy/core/App/contexts/tour/tour-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const TourProviderComponent = (props: TourProviderProps, ref: Ref<Tour>) => {
}, [renderStep, currentStep])

const tourStep = useMemo((): TourStep => {
return tours[currentTour]?.[currentStep ?? 0] ?? { Render: () => <></> }
return tours?.[currentTour]?.[currentStep ?? 0] ?? { Render: () => <></> }
}, [currentTour, currentStep, tours])

const tour = useMemo(
Expand Down
5 changes: 3 additions & 2 deletions packages/legacy/core/App/screens/ContactDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ const ContactDetails: React.FC<ContactDetailsProps> = ({ route }) => {

await agent.connections.deleteById(connection.id)

navigation.navigate(Screens.Contacts)
navigation.popToTop()

// FIXME: This delay is a hack so that the toast doesn't appear until the modal is dismissed
// FIXME: This delay is a hack so that the toast doesn't
// appear until the modal is dismissed
await new Promise((resolve) => setTimeout(resolve, 1000))

Toast.show({
Expand Down

0 comments on commit 810b365

Please sign in to comment.