Fix linter error
This commit is contained in:
parent
ff8d1db005
commit
3de2a2bf3d
|
@ -143,20 +143,16 @@ export default function MySubscriptions(): JSX.Element {
|
|||
const getVersion = ( subscription: Subscription ): string => {
|
||||
if ( subscription.local.version === subscription.version ) {
|
||||
return subscription.local.version;
|
||||
}
|
||||
|
||||
}
|
||||
if ( subscription.local.version && subscription.version ) {
|
||||
return subscription.local.version + ' > ' + subscription.version;
|
||||
}
|
||||
|
||||
if ( subscription.version ) {
|
||||
return subscription.version;
|
||||
}
|
||||
|
||||
if ( subscription.local.version ) {
|
||||
if ( subscription.local.version ) {
|
||||
return subscription.local.version;
|
||||
}
|
||||
|
||||
return '';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue