Skip to content

Commit

Permalink
fix: wrong state when encryption data not loaded yet
Browse files Browse the repository at this point in the history
  • Loading branch information
LowderPlay committed Dec 1, 2023
1 parent 776db1f commit 670fdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const StorageManagerProvider: FC<PropsWithChildren> = ({children}) => {
const [ready, setReady] = useState(false);
const [accounts, setAccounts] = useState<Record<string, Account>>({});
useEffect(() => {
if(encryptionManager?.isLocked) {
if(encryptionManager?.isLocked && encryptionManager.storageChecked) {
setReady(true);
return;
} else {
Expand Down

0 comments on commit 670fdc5

Please sign in to comment.