Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sushain97 committed Feb 24, 2024
1 parent 416156e commit 992f463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const App = ({ setLocale }: { setLocale: React.Dispatch<React.SetStateAction<str
let localeStrings: Strings;
try {
localeStrings = (await axios({ url: `strings/${locale}.json`, validateStatus: (status) => status === 200 }))
.data as Strings;
.data as unknown as Strings;
} catch (error) {
console.warn(`Failed to fetch strings, falling back to default ${defaultLocale}`, error);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ describe('translation', () => {
if (onUploadProgress === undefined) {
throw 'missing onUploadProgress';
}
act(() => onUploadProgress({ loaded: 50, total: 100 }));
act(() => onUploadProgress({ loaded: 50, total: 100 } as ProgressEvent));

expect(screen.getByRole('progressbar').getAttribute('aria-valuenow')).toBe('50');
});
Expand Down

0 comments on commit 992f463

Please sign in to comment.