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

updating react hook dependency

This commit is contained in:
Jamie Hewitt 2021-05-20 18:56:58 +03:00
parent 18a446850c
commit 1c6c300cf6

View File

@ -16,7 +16,7 @@ export default function Permission({
updateData(data)
}
getData()
}, [])
}, [eventType])
console.log('eventType', eventType)
if (data === false) {
const message = `Sorry, you don't have permission to ${eventType}. Please make sure you are logged in.`