Skip to content

Commit 1a87bb2

Browse files
committed
fix: types
1 parent cf30862 commit 1a87bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/wallet/backend/src/gatehub/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export class GateHubClient {
587587

588588
const res = await resp.json()
589589

590-
return res
590+
return res as ICardDetailsResponse
591591
// const cardPinUrl = `${this.apiUrl}/v1/proxy/clientDevice/pin`
592592
// const cardPinResponse = await this.request<ICardDetailsResponse>(
593593
// 'GET',
@@ -636,7 +636,7 @@ export class GateHubClient {
636636
})
637637

638638
if (!response.ok) {
639-
let info = ''
639+
let info
640640
if (response.headers.get('content-type') === 'application/json') {
641641
info = await response.json()
642642
} else {

0 commit comments

Comments
 (0)