Don't show compatibility warning for favorited extensions
This commit is contained in:
1 parent
83442ac126
commit
3f0fef19d2
1 file changed
+6
-2
@@ -48,8 +48,12 @@ class LibraryItem extends React.PureComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-alert
|
||||
if (this.props.incompatibleWithScratch && !confirm(this.props.intl.formatMessage(messages.incompatible))) {
|
||||
if (
|
||||
!this.props.favorite &&
|
||||
this.props.incompatibleWithScratch &&
|
||||
// eslint-disable-next-line no-alert
|
||||
!confirm(this.props.intl.formatMessage(messages.incompatible))
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user