Skip to content

Commit

Permalink
use onPaymentChannelUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
geoknee committed Oct 9, 2023
1 parent 7c6e3f5 commit 5aed7bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/payment-proxy-client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export default function App() {

setPaymentChannelId(result.ChannelId);

nitroClient.PaymentChannelUpdated(result.ChannelId, setPaymentChannelInfo);
nitroClient.onPaymentChannelUpdated(
result.ChannelId,
setPaymentChannelInfo
);

// It's possible the channel updated before we registered the handler above, so
// query the channel once now to get the latest information:
Expand Down

0 comments on commit 5aed7bf

Please sign in to comment.