no resolve undefined pls

This commit is contained in:
zeppi 2020-12-24 11:58:19 -05:00 committed by Sean Yesmunt
parent 070d051e16
commit 5fa57e1859

View file

@ -25,7 +25,7 @@ function FileThumbnail(props: Props) {
const hasResolvedClaim = claim !== undefined;
React.useEffect(() => {
if (!hasResolvedClaim) {
if (!hasResolvedClaim && uri) {
doResolveUri(uri);
}
}, [hasResolvedClaim, uri, doResolveUri]);