Skip to content

Commit

Permalink
typescript build error
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed May 18, 2021
1 parent d6da8ce commit a19d5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions saas/app/pages/create-team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const styleGrid = {

type Props = { store: Store; isMobile: boolean; teamRequired: boolean };

type State = { newName: string; newAvatarUrl: string | ArrayBuffer; disabled: boolean };
type State = { newName: string; newAvatarUrl: string; disabled: boolean };

class CreateTeam extends React.Component<Props, State> {
constructor(props) {
Expand Down Expand Up @@ -200,7 +200,7 @@ class CreateTeam extends React.Component<Props, State> {
reader.readAsDataURL(file);

reader.onload = (e) => {
this.setState({ newAvatarUrl: e.target.result });
this.setState({ newAvatarUrl: e.target.result as string });
};
};
}
Expand Down

0 comments on commit a19d5da

Please sign in to comment.