Skip to content

Commit

Permalink
Merge pull request #166 from Holo-Host/pjs-fixes
Browse files Browse the repository at this point in the history
Pjs fixes for little things
  • Loading branch information
peeech authored Jul 2, 2024
2 parents 9b8a509 + 0776aa5 commit f3cc775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mock-hpos-api/defaultResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ const data = {
'/api/v2/apps/core/version': coreAppVersion,
'/api/v2/host/invoices': mockPaidInvoicesData,
'/api/v2/host/redemptions': mockRedemptionHistoryData,
'/api/v2/host/kyc': mockKycData.kyc
'/api/v2/host/kyc_level': mockKycData.kyc
},
put: {
'/api/v1/config': (args) => args,
Expand Down
8 changes: 3 additions & 5 deletions src/interfaces/HposInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ interface HoloFuelProfileResponse {
avatar_url: string
}

interface CoreAppVersionResponse {
version: string
}
type CoreAppVersionResponse = string | null

export interface HostPreferencesResponse {
price_compute: string
Expand Down Expand Up @@ -860,7 +858,7 @@ export function useHposInterface(): HposInterface {
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const { version: coreAppVersion } = await hposHolochainCall({
const coreAppVersion = await hposHolochainCall({
method: 'get',
path: '/apps/core/version'
})
Expand All @@ -884,7 +882,7 @@ export function useHposInterface(): HposInterface {
// @ts-ignore
const data = await hposHolochainCall({
method: 'get',
path: '/host/kyc'
path: '/host/kyc_level'
})

if (isKycLevel(data)) {
Expand Down

0 comments on commit f3cc775

Please sign in to comment.