diff --git a/RPCPreview.tsx b/RPCPreview.tsx new file mode 100644 index 0000000..caa4a05 --- /dev/null +++ b/RPCPreview.tsx @@ -0,0 +1,23 @@ +// Updated RPCPreview.tsx to properly wrap all conditional renders and ensure getStorage is called consistently. + +import React from 'react'; +import { getStorage } from './storage'; + +const RPCPreview = () => { + const storageData = getStorage(); + + return ( +
+ {storageData ? ( +
+ {/* Conditional render based on storageData */} + {storageData.isAvailable ? : } +
+ ) : ( +
Loading...
+ )} +
+ ); +}; + +export default RPCPreview; \ No newline at end of file