1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 09:44:53 +01:00

Fixing issue with Toast message appearing twice

This commit is contained in:
Jamie Hewitt 2021-04-21 16:23:50 +03:00
parent ad096d4347
commit a20d6d82f0

View File

@ -27,7 +27,7 @@ export default function FileInput({
<Button <Button
style="primary" style="primary"
size="small" size="small"
onClick={(e: React.SyntheticEvent) => handleButtonClick(e, field.value)} onClick={(e: React.SyntheticEvent) => e.preventDefault()}
disabled={!field.value} disabled={!field.value}
> >
{isLoading ? <Loader /> : 'Add File'} {isLoading ? <Loader /> : 'Add File'}