Skip to content

Commit

Permalink
fix: only pick offer and fee from ofer response
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 8, 2022
1 parent 7e45e88 commit 701f37c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/datalayer/persistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ const verifyOffer = async (offer) => {

const data = JSON.parse(response);

console.log(data);

if (data.success) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/models/staging/staging.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Staging extends Model {
metaValue: offerResponse.offer.trade_id,
});

return { offer: offerResponse.offer };
return _.pick('offer', 'fee');
} catch (error) {
throw new Error(error.message);
}
Expand Down

0 comments on commit 701f37c

Please sign in to comment.