Skip to content

Commit

Permalink
fix: add correct type to lastContentPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Harjot1Singh committed Apr 22, 2024
1 parent 7dc02c9 commit edf2a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Redirect } from 'expo-router'
import { Href, Redirect } from 'expo-router'

import { getLastContentPath } from '~/services/history/last-content-path'

const lastContentPath = getLastContentPath()

const Index = () => ( lastContentPath
? <Redirect href={lastContentPath} />
? <Redirect href={lastContentPath as Href<'/(tabs)/content/(content)/[type]/[id]'>} />
: <Redirect href="/content/shabad/DMP" /> )

export default Index

0 comments on commit edf2a4e

Please sign in to comment.