Bugfix for js error on transaction page.

Increase ping-pong timeout.
This commit is contained in:
softsimon 2020-09-29 18:27:44 +07:00
parent 05bea21cc8
commit d0b3b240e6
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@
</div>
</td>
</tr>
<tr *ngIf="tx.status.block_height <= latestBlock.height - 8">
<tr *ngIf="latestBlock && tx.status.block_height <= latestBlock.height - 8">
<td class="td-width">Included in block</td>
<td>
<a [routerLink]="['/block/' | relativeUrl, tx.status.block_hash]" [state]="{ data: { blockHeight: tx.status.block_height } }">{{ tx.status.block_height }}</a>

View File

@ -11,7 +11,7 @@ const WEB_SOCKET_URL = WEB_SOCKET_PROTOCOL + '//' + document.location.hostname +
const OFFLINE_RETRY_AFTER_MS = 10000;
const OFFLINE_PING_CHECK_AFTER_MS = 30000;
const EXPECT_PING_RESPONSE_AFTER_MS = 1000;
const EXPECT_PING_RESPONSE_AFTER_MS = 4000;
@Injectable({
providedIn: 'root'