Handle non-used addresses in search fix#67

This commit is contained in:
Willian Mitsuda 2022-02-03 15:14:05 -03:00
parent e45ea7db12
commit f52119a540
1 changed files with 4 additions and 4 deletions

View File

@ -132,8 +132,8 @@ const AddressTransactionResults: React.FC<AddressTransactionResultsProps> = ({
address={address} address={address}
isFirst={controller?.isFirst} isFirst={controller?.isFirst}
isLast={controller?.isLast} isLast={controller?.isLast}
prevHash={page ? page[0].hash : ""} prevHash={page?.[0]?.hash ?? ""}
nextHash={page ? page[page.length - 1].hash : ""} nextHash={page?.[page.length - 1]?.hash ?? ""}
disabled={controller === undefined} disabled={controller === undefined}
/> />
</div> </div>
@ -165,8 +165,8 @@ const AddressTransactionResults: React.FC<AddressTransactionResultsProps> = ({
address={address} address={address}
isFirst={controller?.isFirst} isFirst={controller?.isFirst}
isLast={controller?.isLast} isLast={controller?.isLast}
prevHash={page ? page[0].hash : ""} prevHash={page?.[0]?.hash ?? ""}
nextHash={page ? page[page.length - 1].hash : ""} nextHash={page?.[page.length - 1]?.hash ?? ""}
disabled={controller === undefined} disabled={controller === undefined}
/> />
</div> </div>