Skip to content

Adds some functionality and fixes to wallet #661

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 18 commits into from
May 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Next Next commit
fix: adjust check synced timing
  • Loading branch information
@IlyasRidhuan
IlyasRidhuan committedMay 12, 2022
commit b3901658fdeecc9f86c3d6a32a78d2a4fd23f5b8
6 changes: 4 additions & 2 deletions wallet/src/hooks/User/index.jsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -145,7 +145,9 @@ export const UserProvider = ({ children }) => {
const circuitName = USE_STUBS
? ['deposit_stub', 'single_transfer_stub', 'double_transfer_stub', 'withdraw_stub']
: ['deposit', 'single_transfer', 'double_transfer', 'withdraw'];
if (circuitName.every(c => checkIndexDBForCircuit(c))) {

const circuitCheck = circuitName.map(c => checkIndexDBForCircuit(c));
if (circuitCheck.every(c => c)) {
setState(previousState => {
return {
...previousState,
Expand All@@ -155,7 +157,7 @@ export const UserProvider = ({ children }) => {
setSyncing(false);
}
},
isSyncing ? 1000 : null,
isSyncing ? 30000 : null,
);
/*
* TODO: children should render when sync is complete
Expand Down