address nit

This commit is contained in:
Bill He 2023-10-02 18:06:44 -04:00
parent 95b3c54e0b
commit 279e0d193a
No known key found for this signature in database
GPG Key ID: 73AEEF9D79E5BBF8

View File

@ -71,7 +71,7 @@ const useLocalNotificationsContext = () => {
const status = await squid?.getStatus({ transactionId: txHash, toChainId, fromChainId });
if (status) statuses[txHash] = status;
} catch (error) {
// ignore errors for the first 120s since the route might not be available yet
// ignore errors for the first 120s since the status might not be available yet
if (!triggeredAt || Date.now() - triggeredAt > STATUS_ERROR_GRACE_PERIOD) {
statuses[txHash] = error;
}