From 6698b05ad3a9e8e632c5f9559956e85068e55b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Mansot?= <26844641+devfull@users.noreply.github.com> Date: Fri, 29 Sep 2023 19:13:37 +0200 Subject: [PATCH] fix eager `toString()` --- src/app/api/notary/OfficeFolderAnchorsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/notary/OfficeFolderAnchorsController.ts b/src/app/api/notary/OfficeFolderAnchorsController.ts index 9c4c7fdf..f0e1c76f 100644 --- a/src/app/api/notary/OfficeFolderAnchorsController.ts +++ b/src/app/api/notary/OfficeFolderAnchorsController.ts @@ -22,7 +22,7 @@ const hydrateOfficeFolderAnchor = (data: any): OfficeFolderAnchor => status: data.transactions[0].status, anchor_nb_try: data.transactions[0].anchor_nb_try, - tx_id: data.transactions[0].tx_id.toString(), + tx_id: data.transactions[0].tx_id?.toString() ?? undefined, tx_link: data.transactions[0].tx_link, tx_hash: data.transactions[0].tx_hash,