[bisq-network/bisq] BSQ swaps: Low risk refactorings [2] (PR #5770)
Stan
notifications at github.com
Fri Oct 22 19:17:54 CEST 2021
@ghubstan commented on this pull request.
> @@ -188,7 +188,7 @@ public void initialize() {
MenuItem editItem = new MenuItem(Res.get("portfolio.context.offerLikeThis"));
editItem.setOnAction((event) -> {
try {
- OfferPayload offerPayload = row.getItem().getOffer().getOfferPayload();
+ OfferPayload offerPayload = row.getItem().getOffer().getOfferPayload().orElseThrow();
navigation.navigateToWithData(offerPayload, MainView.class, PortfolioView.class,
`orElseThrow()` 'offer has no payload' instead?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5770#pullrequestreview-787097591
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211022/f60aab88/attachment-0001.htm>
More information about the bisq-github
mailing list