-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat sort assets in verified tab by uploaded at #3158
Feat sort assets in verified tab by uploaded at #3158
Conversation
storeIndexedProof is called from storeRemoteCapture. storeRemoteCapture most of the time is called when user restore (during app start) or reload (triggers pull to refresh)
: this.timestamp * MILLISECONDS_PER_SECOND; | ||
|
||
try { | ||
const serverTimestampInMilliseconds = Date.parse(this.uploadedAt ?? ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The try-catch clause seems unnecessary here. Date.parse
returns NaN
for empty string or string that cannot be parsed into timestamp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shc261392, you are right I tested with empty string, invalid date string it return NaN
. Here is the commit refactor(proof.ts): remove unused try catch block
d09dc29
into
v240104-capture-cam-ionic-launch
Fixes #3138
┆Issue is synchronized with this Asana task by Unito