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
9f32363a
Commit
9f32363a
authored
Jan 22, 2020
by
Akinwale Ariwodola
Browse files
fix existing publish name check for edit mode
parent
467272d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/page/publish/view.js
View file @
9f32363a
...
...
@@ -401,7 +401,7 @@ class PublishPage extends React.PureComponent {
if
(
!
isNameValid
(
name
,
false
))
{
notify
({
message
:
__
(
'
Your content address contains invalid characters.
'
),
isError
:
true
});
return
;
}
else
if
(
myClaims
&&
myClaims
.
length
>
0
)
{
}
else
if
(
!
editMode
&&
myClaims
&&
myClaims
.
length
>
0
)
{
if
(
myClaims
.
some
(
claim
=>
claim
.
name
.
toLowerCase
()
===
name
.
trim
().
toLowerCase
()))
{
notify
({
message
:
__
(
'
You have already published to the specified content address. Please enter a new address.
'
),
...
...
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