mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
build fix
This commit is contained in:
parent
77231cf798
commit
ff3e15eb43
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user