@@ -106,7 +106,7 @@ app.action<BlockAction<ButtonAction>>('delete_action', async ({ ack, body, clien
106
106
107
107
const channelId = channel ?. id ;
108
108
109
- const { comment, currentLocationURL = '' , commmentSectionURL = '' } = JSON . parse ( value ) ;
109
+ const { comment, currentLocationURL = '' , commentSectionURL = '' } = JSON . parse ( value ) ;
110
110
111
111
const googleAuth = new JWT ( {
112
112
email : 'service-account-804@docs-feedbacks.iam.gserviceaccount.com' ,
@@ -121,7 +121,7 @@ app.action<BlockAction<ButtonAction>>('delete_action', async ({ ack, body, clien
121
121
range : 'Deleted messages!A:D' ,
122
122
valueInputOption : 'USER_ENTERED' ,
123
123
resource : {
124
- values : [ [ username , comment , currentLocationURL , commmentSectionURL ] ] ,
124
+ values : [ [ username , comment , currentLocationURL , commentSectionURL ] ] ,
125
125
} ,
126
126
} ) ;
127
127
@@ -150,7 +150,7 @@ app.action('save_message', async ({ ack, body, client, logger }) => {
150
150
} = body as BlockAction < ButtonAction > ;
151
151
152
152
const channelId = channel ?. id ;
153
- const { comment, currentLocationURL = '' , commmentSectionURL = '' } = JSON . parse ( value ) ;
153
+ const { comment, currentLocationURL = '' , commentSectionURL = '' } = JSON . parse ( value ) ;
154
154
155
155
const googleAuth = new JWT ( {
156
156
email : 'service-account-804@docs-feedbacks.iam.gserviceaccount.com' ,
@@ -165,7 +165,7 @@ app.action('save_message', async ({ ack, body, client, logger }) => {
165
165
range : 'Sheet1!A:D' ,
166
166
valueInputOption : 'USER_ENTERED' ,
167
167
updates : {
168
- values : [ [ username , comment , currentLocationURL , commmentSectionURL ] ] ,
168
+ values : [ [ username , comment , currentLocationURL , commentSectionURL ] ] ,
169
169
} ,
170
170
} ) ;
171
171
@@ -198,24 +198,22 @@ export const handler: Handler = async (event, context, callback) => {
198
198
rating,
199
199
comment,
200
200
currentLocationURL,
201
- commmentSectionURL : inCommmentSectionURL ,
202
- commmentSectionTitle ,
201
+ commentSectionURL : inCommentSectionURL ,
202
+ commentSectionTitle ,
203
203
githubRepo,
204
204
productId,
205
205
} = data ;
206
206
207
207
// The design feedback alert was removed in https://github.com/mui/material-ui/pull/39691
208
208
// This dead code is here to simplify the creation of special feedback channel
209
- const isDesignFeedback = inCommmentSectionURL . includes ( '#new-docs-api-feedback' ) ;
210
- const commmentSectionURL = isDesignFeedback ? '' : inCommmentSectionURL ;
209
+ const isDesignFeedback = inCommentSectionURL . includes ( '#new-docs-api-feedback' ) ;
210
+ const commentSectionURL = isDesignFeedback ? '' : inCommentSectionURL ;
211
211
212
212
const simpleSlackMessage = [
213
213
`New comment ${ rating === 1 ? '👍' : '' } ${ rating === 0 ? '👎' : '' } ` ,
214
214
`>${ comment . split ( '\n' ) . join ( '\n>' ) } ` ,
215
215
`sent from ${ currentLocationURL } ${
216
- commmentSectionTitle
217
- ? ` (from section <${ commmentSectionURL } |${ commmentSectionTitle } )>`
218
- : ''
216
+ commentSectionTitle ? ` (from section <${ commentSectionURL } |${ commentSectionTitle } )>` : ''
219
217
} `,
220
218
] . join ( '\n\n' ) ;
221
219
@@ -224,7 +222,7 @@ export const handler: Handler = async (event, context, callback) => {
224
222
body : `Feedback received:
225
223
${ comment }
226
224
227
- from ${ commmentSectionURL }
225
+ from ${ commentSectionURL }
228
226
` ,
229
227
} ) ;
230
228
@@ -260,7 +258,7 @@ from ${commmentSectionURL}
260
258
value : JSON . stringify ( {
261
259
comment,
262
260
currentLocationURL,
263
- commmentSectionURL ,
261
+ commentSectionURL ,
264
262
} ) ,
265
263
action_id : 'save_message' ,
266
264
} ,
@@ -273,7 +271,7 @@ from ${commmentSectionURL}
273
271
value : JSON . stringify ( {
274
272
comment,
275
273
currentLocationURL,
276
- commmentSectionURL ,
274
+ commentSectionURL ,
277
275
} ) ,
278
276
style : 'danger' ,
279
277
action_id : 'delete_action' ,
0 commit comments