1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 17:23:50 +01:00

typescript fixes

This commit is contained in:
Matthias Kretschmann 2019-10-23 11:50:05 +02:00
parent f50cede2c2
commit 48fc75ec78
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -25,9 +25,9 @@ export default function ModalThanks(props: any) {
{Object.keys(author) {Object.keys(author)
.filter(key => key === 'bitcoin' || key === 'ether') .filter(key => key === 'bitcoin' || key === 'ether')
.map((address, i) => ( .map((address: string, i: number) => (
<div key={i} className={styles.coin}> <div key={i} className={styles.coin}>
<Qr title={address} address={author[address]} /> <Qr title={address} address={(author as any)[address]} />
</div> </div>
))} ))}
</div> </div>