mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
Format and automatically fix linted code.
This commit is contained in:
@@ -46,10 +46,9 @@ function recursiveReplaceFields(input: string, fields: Fields) {
|
||||
}
|
||||
|
||||
return values.flat();
|
||||
} else {
|
||||
// base case
|
||||
return [input];
|
||||
}
|
||||
// base case
|
||||
return [input];
|
||||
}
|
||||
|
||||
export function TextReact({ id, fields }: Props) {
|
||||
@@ -57,7 +56,7 @@ export function TextReact({ id, fields }: Props) {
|
||||
|
||||
const path = id.split(".");
|
||||
let entry = intl.dictionary[path.shift()!];
|
||||
for (let key of path) {
|
||||
for (const key of path) {
|
||||
// @ts-expect-error
|
||||
entry = entry[key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user