From 747d5aa2075de250a080c2fa19590b00f5fbf779 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:06:48 +0800 Subject: [PATCH] fix bug of request with undefined token --- src/components/chain/BlockChain.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/chain/BlockChain.js b/src/components/chain/BlockChain.js index 6e8d8f1..5cf8d2a 100644 --- a/src/components/chain/BlockChain.js +++ b/src/components/chain/BlockChain.js @@ -126,6 +126,9 @@ export class BlockChain { const res = await this.wallet.getAccessToken(); token = res.token } + if (!token) { + return '' + } return token+suffix }