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

build fix

This commit is contained in:
Matthias Kretschmann 2020-07-13 11:35:24 +02:00
parent 77231cf798
commit ff3e15eb43
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -25,7 +25,11 @@ export default function FileInput(
<Button
size="small"
onClick={(e: React.SyntheticEvent) => handleButtonClick(e, field.value)}
disabled={!field.value || !isUrl(field.value)}
disabled={
!field.value ||
// weird static page build fix so is-url-superb won't error
isUrl(typeof field.value === 'string' ? field.value : '')
}
>
{isLoading ? <Loader /> : 'Add File'}
</Button>