[ui/discord-guild-pic]: hacky: change derived state props to any

This commit is contained in:
41666 2019-06-05 12:53:04 -05:00
parent c1bdc9ddc9
commit a81dfa84c0
No known key found for this signature in database
GPG key ID: DE08FAA8925DC747

View file

@ -25,7 +25,7 @@ export default class DiscordGuildPic extends React.Component<GuildPicProps, Guil
ok: true
}
static getDerivedStateFromProps (nextProps: GuildPicProps, prevState: GuildPicState): GuildPicState {
static getDerivedStateFromProps (nextProps: any, prevState: GuildPicState): GuildPicState {
return {
...prevState,
src: `https://cdn.discordapp.com/icons/${nextProps.id}/${nextProps.icon}.png`