Skip to content

Commit

Permalink
Simplify copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Apr 12, 2024
1 parent 7a56d04 commit cda3ba1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ function InspectorImagePreview( { label, filename, url: imgUrl } ) {
let imgLabel = label || getFilename( imgUrl );
// getFilename returns 'undefined' as a string.
imgLabel =
!! imgLabel && imgLabel !== 'undefined'
? imgLabel
: __( 'Select or upload image' );
!! imgLabel && imgLabel !== 'undefined' ? imgLabel : __( 'Add image' );

return (
<ItemGroup as="span">
Expand Down

0 comments on commit cda3ba1

Please sign in to comment.