fix: reset error state on Enka Network load completion
This commit is contained in:
@@ -89,7 +89,10 @@ export function EnkaBrowser({
|
|||||||
fill
|
fill
|
||||||
objectFit="contain"
|
objectFit="contain"
|
||||||
title="Enka Network"
|
title="Enka Network"
|
||||||
onLoadingComplete={() => setReady(true)}
|
onLoad={() => {
|
||||||
|
setReady(true);
|
||||||
|
setError(false);
|
||||||
|
}}
|
||||||
onError={() => setError(true)}
|
onError={() => setError(true)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user