Skip to content

Commit

Permalink
fix(skin): skin transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
egorprnn committed Mar 13, 2022
1 parent b49e5c4 commit 580c4db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/contexts/skin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ export class SkinContext extends Context<SkinContext> {
}
})
.then(({ request }) => {
const [, hash] = (request?.res?.responseUrl || request.responseURL).match(skinRegExp);
const [, id] = (request?.res?.responseUrl || request.responseURL).match(skinRegExp);

if (!hash) {
if (!id) {
throw new WrapperError('NO_USEFUL');
}

this.payload = {
hash,
id,
transformation
};

Expand Down

0 comments on commit 580c4db

Please sign in to comment.