Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
lbry-react-native
Commits
156e3103
Commit
156e3103
authored
Jan 14, 2020
by
Akinwale Ariwodola
Browse files
fix error on opening related content or urls
parent
683b1f48
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/page/file/view.js
View file @
156e3103
...
...
@@ -677,13 +677,16 @@ class FilePage extends React.PureComponent {
getPurchaseUrl
=
()
=>
{
const
{
claim
,
navigation
}
=
this
.
props
;
const
{
permanent
_url
:
permanent
U
rl
}
=
claim
;
const
permanent
Url
=
claim
?
claim
.
permanent
_u
rl
:
null
;
let
purchaseUrl
;
if
(
navigation
.
state
.
params
)
{
const
{
uri
,
fullUri
}
=
navigation
.
state
.
params
;
purchaseUrl
=
fullUri
||
uri
||
permanentUrl
;
}
if
(
!
purchaseUrl
&&
permanentUrl
)
{
purchaseUrl
=
permanentUrl
;
}
return
purchaseUrl
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment