fix react error
This commit is contained in:
parent
fba0187b2c
commit
d32fa05e42
|
@ -205,8 +205,7 @@ export default function Satistics ({ data: { me, walletHistory: { facts, cursor
|
||||||
<tbody>
|
<tbody>
|
||||||
{facts.map((f, i) => {
|
{facts.map((f, i) => {
|
||||||
const uri = href(f)
|
const uri = href(f)
|
||||||
const Wrapper = uri ? Link : React.Fragment
|
const Wrapper = uri ? Link : ({ href, ...props }) => <React.Fragment {...props} />
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Wrapper href={uri} key={f.id}>
|
<Wrapper href={uri} key={f.id}>
|
||||||
<tr className={styles.row}>
|
<tr className={styles.row}>
|
||||||
|
|
Loading…
Reference in New Issue