Skip to content

Commit

Permalink
fix: handle claim reference on debio network (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhakim2902 authored Mar 17, 2023
1 parent 25aaacf commit 566eedc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/network.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ export class NetworkService {
if (!server) throw new HttpErrors.NotFound('ServerNotFound');

const networkId = wallet.networkId;
const serverId = server?.accountId?.[networkId];
const serverId =
networkId === 'myriad' || networkId === 'debio'
? server?.accountId?.myriad
: server?.accountId?.[networkId];

if (!serverId) {
throw new HttpErrors.UnprocessableEntity('ServerNotExists');
Expand Down

0 comments on commit 566eedc

Please sign in to comment.