Skip to content

Commit a8ad331

Browse files
authored
fix: remove non-descriptive var named stuff (#565)
1 parent 2839a0f commit a8ad331

File tree

1 file changed

+1
-2
lines changed
  • apps/american-british-translator/public

1 file changed

+1
-2
lines changed

apps/american-british-translator/public/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const translateHandler = async () => {
44
const errorArea = document.getElementById('error-msg');
55
const translatedArea = document.getElementById('translated-sentence');
66

7-
const stuff = { text: textArea.value, locale: localeArea.value };
87
errorArea.innerText = '';
98
translatedArea.innerText = '';
109

@@ -14,7 +13,7 @@ const translateHandler = async () => {
1413
Accept: 'application/json',
1514
'Content-type': 'application/json'
1615
},
17-
body: JSON.stringify(stuff)
16+
body: JSON.stringify({ text: textArea.value, locale: localeArea.value })
1817
});
1918

2019
const parsed = await data.json();

0 commit comments

Comments
 (0)