mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
build fix
This commit is contained in:
parent
77231cf798
commit
ff3e15eb43
@ -25,7 +25,11 @@ export default function FileInput(
|
|||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
onClick={(e: React.SyntheticEvent) => handleButtonClick(e, field.value)}
|
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'}
|
{isLoading ? <Loader /> : 'Add File'}
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user