chore(deps): update bee-js to 2.0.0 (#210)

This commit is contained in:
Vojtech Simetka
2021-10-04 12:25:41 +02:00
committed by GitHub
parent c4c1573263
commit c4c7d9619d
4 changed files with 199 additions and 12 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ export default function Files(): ReactElement {
const handleReferenceChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
setReferenceInput(e.target.value)
if (Utils.Hex.isHexString(e.target.value, 64) || Utils.Hex.isHexString(e.target.value, 128)) setReferenceError(null)
if (Utils.isHexString(e.target.value, 64) || Utils.isHexString(e.target.value, 128)) setReferenceError(null)
else setReferenceError(new Error('Incorrect format of swarm hash'))
}