Skip to content

Commit 34bf01e

Browse files
committed
remove check of isSupported
requires #2190
1 parent f272d8a commit 34bf01e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

source/views/settings/credits.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ const formatPeopleList = arr => arr.map(w => w.replace(' ', ' ')).join(' • ')
6161
type Props = TopLevelViewPropsType
6262

6363
type State = {
64-
supported: boolean,
6564
iconType: null | string,
6665
}
6766

@@ -71,29 +70,21 @@ export default class CreditsView extends React.Component<Props, State> {
7170
}
7271

7372
state = {
74-
supported: false,
7573
iconType: null,
7674
}
7775

7876
componentWillMount() {
79-
this.checkIfCustomIconsSupported()
8077
this.getIcon()
8178
}
8279

83-
checkIfCustomIconsSupported = async () => {
84-
const supported = await Icons.isSupported()
85-
this.setState(() => ({supported}))
86-
}
87-
8880
getIcon = async () => {
8981
const name = await Icons.getIconName()
9082
this.setState(() => ({iconType: name}))
9183
}
9284

9385
render() {
94-
const image = this.state.supported
95-
? this.state.iconType === 'default' ? appIcons.oldMain : appIcons.windmill
96-
: appIcons.oldMain
86+
const image =
87+
this.state.iconType === 'default' ? appIcons.oldMain : appIcons.windmill
9788

9889
return (
9990
<Container contentInsetAdjustmentBehavior="automatic">

0 commit comments

Comments
 (0)