Skip to content

Commit

Permalink
fix: dont show undefined errors
Browse files Browse the repository at this point in the history
  • Loading branch information
samsiegart committed Feb 22, 2023
1 parent 21e43a1 commit 5446615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions wallet/src/components/Proposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ const Proposal = ({ offer, purses, swingsetParams, beansOwing }) => {
hasDisplayInfo ? WantFromDisplayInfo(w) : WantFromTemplate(w, purses),
);

console.log('error', error);
return (
<>
{Gives}
Expand Down
2 changes: 1 addition & 1 deletion wallet/src/service/Offers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const getOfferService = (
? OfferUIStatus.refunded
: OfferUIStatus.accepted,
isSeated: false,
error: `${status.error}`,
error: status.error && `${status.error}`,
});
remove(smartWalletKey, id);
} else if (status.error !== undefined) {
Expand Down

0 comments on commit 5446615

Please sign in to comment.