1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix tab change error

This commit is contained in:
Matthias Kretschmann 2020-08-17 23:58:28 +02:00
parent b114d7c529
commit c65638592d
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -23,7 +23,7 @@ export default function Tabs({
<Tab
className={styles.tab}
key={item.title}
onClick={() => handleTabChange(item.title)}
onClick={handleTabChange ? () => handleTabChange(item.title) : null}
>
{item.title}
</Tab>