Skip to content

Commit 72bf493

Browse files
committed
Clarify restaurant => restaurant id in the block settings
1 parent 6666a05 commit 72bf493

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

projects/plugins/jetpack/extensions/blocks/opentable/edit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function OpenTableEdit( {
235235
label={ __( 'OpenTable Reservation', 'jetpack' ) }
236236
icon={ icon }
237237
instructions={ __(
238-
'Enter your restaurants ids, separated by comma, or paste an OpenTable Reservation Widget embed code.',
238+
'Enter your restaurants IDs, separated by comma, or paste an OpenTable Reservation Widget embed code.',
239239
'jetpack'
240240
) }
241241
notices={ noticeUI }

projects/plugins/jetpack/extensions/blocks/opentable/restaurant-picker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function RestaurantPicker( props ) {
1212
const idRegex = /^(\d+)$|\(#(\d+)\)$/;
1313

1414
const onChange = selected => {
15-
// we try to parse the restaurand id
15+
// we try to parse the restaurant id
1616
const selectedIds = selected.map( restaurant => {
1717
const parsed = idRegex.exec( restaurant );
1818
if ( parsed ) {
@@ -39,7 +39,7 @@ export default function RestaurantPicker( props ) {
3939
value={ selectedRestaurants }
4040
saveTransform={ token => ( possibleEmbed.test( token ) ? '' : token.trim() ) }
4141
onInputChange={ setInput }
42-
label={ _n( 'Restaurant', 'Restaurants', selectedRestaurants.length, 'jetpack' ) }
42+
label={ _n( 'Restaurant ID', 'Restaurant IDs', selectedRestaurants.length, 'jetpack' ) }
4343
{ ...props }
4444
onChange={ onChange }
4545
__nextHasNoMarginBottom={ true }

0 commit comments

Comments
 (0)