Skip to content

Commit

Permalink
Fixed file reader (#381)
Browse files Browse the repository at this point in the history
* Added #include to schema

* * (bluefox) Added translations

* chore: release v6.1.7

* (bluefox) Added translations

* Merged

* Fixing #350
  • Loading branch information
GermanBluefox authored Aug 3, 2024
1 parent bab58e3 commit e86454a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class Logo extends React.Component<LogoProps> {
if (f) {
const r = new window.FileReader();
r.onload = () => {
// @ts-expect-error I don't know how to fix this
const contents = target.result as string;
const contents: string = r.result?.toString() || '';
try {
const json = JSON.parse(contents);
if (json.native && json.common) {
Expand Down

0 comments on commit e86454a

Please sign in to comment.